Exemple #1
0
 public RunningState(HeroController hero, HeroStateMachine fsm)
     : base(hero, fsm)
 {
     rb       = hero.GetComponent <Rigidbody2D>();
     animator = hero.GetComponent <Animator>();
     speed    = hero.speed;
 }
Exemple #2
0
 public IdleState(HeroController hero, HeroStateMachine fsm)
     : base(hero, fsm)
 {
     animator = hero.GetComponent <Animator>();
 }