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(); } } }
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)); } }
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(); } } }