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); } } }
void Awake() { S = this; }