Exemple #1
0
 void KillGangster(Gangster gangster)
 {
     CurrentPlayer.DeadGangsters += 1;
     gangster.TeleportOut();
     if (IsMyTurn)
     {
         UiGangsterPanel.DeadGangsters = CurrentPlayer.DeadGangsters;
     }
 }
Exemple #2
0
    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;
    }