private void BattleHandler() { if (PreconditionCheck() == false) { return; } mGamePhase = GAME_PHASE.ATTACKING_PHASE; BlockerPhase(); int attackerPower = mTargetingCard.GetPower(); int attackedPower = mTargetedCard.GetPower(); if (attackerPower == attackedPower) { //Destroy(mTargetingCard.GetGameObject()); //Destroy(mTargetedCard.GetGameObject()); mTargetingCard.GetGameObject().GetComponent <Card>().Defeated(); mTargetedCard.GetGameObject().GetComponent <Card>().Defeated(); } else if (attackerPower > attackedPower) { //Destroy(mTargetedCard.GetGameObject()); mTargetedCard.GetGameObject().GetComponent <Card>().Defeated(); } else { //Destroy(mTargetingCard.GetGameObject()); mTargetingCard.GetGameObject().GetComponent <Card>().Defeated(); } }