예제 #1
0
 static private void strongAttack()
 {
     if (enemy != null)
     {
         if (strongAttackCD <= 0)
         {
             player.strongAttack(enemy);
             shieldCD--;
             strongAttackCD = 3;
             updateCDTexts();
             // if enemy was killed
             if (player.enemySlain && enemy.playerDead == false)
             {
                 if (enemy.tag == "Boss")
                 {
                     WinZone.winGame();
                 }
                 else
                 {
                     showBattlePanel();
                 }
             }
         }
         else
         {
             player.strongAttackFail(strongAttackCD);
         }
     }
 }
예제 #2
0
 void Awake()
 {
     S = this;
 }