Ejemplo n.º 1
0
 public DeadState(CharacterStateMachine HSM, GameObject killedBy) : base(HSM)
 {
     if (killedBy != null)
     {
         character.Health = 0;
         character.KilledSound.Play();
     }
     else //fell
     {
         character.Health = 0;
         if (character.FallSound != null)
         {
             character.FallSound.Play();
         }
     }
     character.Movement = 0;
     character.sprite.LoadAnimation(character.DieAnimation);
 }
Ejemplo n.º 2
0
 public ShooterState(CharacterStateMachine sm) : base(sm)
 {
 }
Ejemplo n.º 3
0
 public State(CharacterStateMachine sm)
 {
     this.sm   = sm;
     character = sm.Character;
 }
Ejemplo n.º 4
0
 public MainState(CharacterStateMachine sm) : base(sm)
 {
 }
Ejemplo n.º 5
0
 public HolsterState(CharacterStateMachine SM)
     : base(SM)
 {
 }