void Awake() { character = GetComponent <State2DRobotController>(); _robotInput = new RobotInput() { move = 0.0f, crouch = false, jump = false }; }
protected RobotState(State2DRobotController robot) { _robot = robot; }
public CrouchState(State2DRobotController robot) : base(robot) { }
public WalkState(State2DRobotController robot) : base(robot) { _robotAnimator = robot.gameObject.GetComponent <Animator>(); }
public WalkState(State2DRobotController robot) : base(robot) { _robotAnimator = robot.gameObject.GetComponent<Animator>(); }
void Awake() { character = GetComponent<State2DRobotController>(); _robotInput = new RobotInput() {move = 0.0f, crouch = false, jump = false}; }
public CrouchState(State2DRobotController robot) : base(robot) { }
protected RobotState(State2DRobotController robot) { _robot = robot; }