示例#1
0
 public void Attack(Personnage Enemy)
 {
     if (getIdentity() == "Player")
     {
         SoundScript.Instance.MakePlayerAttackSound();
     }
     else if (getIdentity() == "Enemy")
     {
         SoundScript.Instance.MakeenemyAttackSound();
     }
     Enemy.Defend(this);
     decreaseSpeed(1);
     if (speed <= 0 && getIdentity() == "Player")
     {
         movementSynchronisation();
     }
 }