Ejemplo n.º 1
0
 void Guard(int collisionId, int collisionCount, AttackCollisionActor actor, CollisionResult result)
 {
     if (HitPoint > 0 && collisionCount == 1)
     {
         //SoundManager.PlaySoundEffect("metal03");
         //DebugPrint.PrintLine("Player guard");
         ComboCounter.Guard(actor.Shock);
         if (ComboCounter.Shocked)
         {
             GoToShocked();
         }
     }
 }
Ejemplo n.º 2
0
 void Damage(int collisionId, int collisionCount, AttackCollisionActor actor, CollisionResult result)
 {
     if (HitPoint > 0 && collisionCount == 1)
     {
         HitPoint -= actor.Power;
         DebugPrint.PrintLine("Enemy damage {0}, HP {1}", actor.Power, HitPoint);
         ComboCounter.Damage(actor.Shock);
     }
     if (HitPoint <= 0)
     {
         UpdateState = UpdateStateTerm;
         DecoManager.Add(new ccm.Deco.Deco_Twister(Transform, Camera, GameRand));
     }
 }
Ejemplo n.º 3
0
 void Damage(int collisionId, int collisionCount, AttackCollisionActor actor, CollisionResult result)
 {
     if (HitPoint > 0 && collisionCount == 1)
     {
         HitPoint -= actor.Power;
         DebugPrint.PrintLine("Player damage {0}, HP {1}", actor.Power, HitPoint);
         ComboCounter.Damage(actor.Shock);
         if (ComboCounter.Shocked)
         {
             GoToShocked();
         }
     }
 }