C#:
public class PlayerMovementState
{
protected PlayerMovementStatemachine stateMachine;
public PlayerMovementState(PlayerMovementStatemachine playerMovementStateMachine)
{
stateMachine = playerMovementStateMachine;
//CS0229: Ambugity between 'PlayerMovementState.stateMachine' and 'PlayerMovementState.stateMachine
}
public class PlayerWalkingState : PlayerMovementState
{
public PlayerWalkingState(PlayerMovementStatemachine playerMovementStateMachine) : base(playerMovementStateMachine)
{ //C20121 The call is ambugious between the following methods or properties 'PlayerMovementState.PlayerMovementState(PlayerMovementStateMachine)' and 'PlayerMovementState.PlayerMovementState(PlayerMovementStateMachine)'
}
}
}
}
Last edited: