private void TriggerWin(bool leftSamurai) { lastWinner = (leftSamurai) ? LastWinner.LEFT : LastWinner.RIGHT; EventManager.TriggerGameWin(); StartCoroutine(WaitAndShowWinner()); }
private void TriggerTie() { waitingForRestart = true; lastWinner = LastWinner.TIE; EventManager.TriggerGameTie(); }
private void TriggerWin(bool leftSamurai) { flagPopped = false; CenterPiece.SetActive(false); lastWinner = (leftSamurai) ? LastWinner.LEFT : LastWinner.RIGHT; // Trigger gui cues gui.FlashWhiteFadeOut(); SwapPlayerPositions(); StartCoroutine(WaitAndShowWinner()); }