void KillGangster(Gangster gangster) { CurrentPlayer.DeadGangsters += 1; gangster.TeleportOut(); if (IsMyTurn) { UiGangsterPanel.DeadGangsters = CurrentPlayer.DeadGangsters; } }
IEnumerator MafiaDigJobCR() { Interactable = false; GraveyardGangster.Teleport(); yield return(new WaitForSeconds(1.5f)); UnhighlightCard(); if (graveyard.Count > 0) { yield return(GetCardFromGraveyardCR()); GraveyardGangster.TeleportOut(); } else { KillGangster(GraveyardGangster); yield return(SpawnZombieKillGoCR(GraveyardGangster.gameObject)); } Interactable = true; }