Пример #1
0
 public void basicAttack()
 {
     if (OnAttack != null)
     {
         OnAttack();
     }
     random = Random.Range(0, 4);
     if (random == 0 || player.guard == true)
     {
         player.lowerHP(strength * 10);
         player.guard      = false;
         enemyChanges.text = "MC took " + (strength * 10).ToString() + " damage\n";
     }
     else if (random == 1)
     {
         jeff.lowerHP(strength * 10);
         enemyChanges.text = "Jeff took " + (strength * 10).ToString() + " damage\n";
     }
     else if (random == 2)
     {
         steve.lowerHP(strength * 10);
         enemyChanges.text = "Steve took " + (strength * 10).ToString() + " damage\n";
     }
     else
     {
         bob.lowerHP(strength * 10);
         enemyChanges.text = "Bob took " + (strength * 10).ToString() + " damage\n";
     }
     turn = false;
 }