void Awake()
 {
     character   = GetComponent <State2DRobotController>();
     _robotInput = new RobotInput()
     {
         move = 0.0f, crouch = false, jump = false
     };
 }
Example #2
0
 protected RobotState(State2DRobotController robot)
 {
     _robot = robot;
 }
 public CrouchState(State2DRobotController robot) : base(robot)
 {
 }
Example #4
0
 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;
 }