Пример #1
0
	private void TriggerWin(bool leftSamurai) 
	{
		lastWinner = (leftSamurai) ? LastWinner.LEFT : LastWinner.RIGHT;
		EventManager.TriggerGameWin();
		StartCoroutine(WaitAndShowWinner());
	}
Пример #2
0
	private void TriggerTie()
	{
		waitingForRestart = true;
		lastWinner = LastWinner.TIE;
		EventManager.TriggerGameTie();
	}
Пример #3
0
	private void TriggerWin(bool leftSamurai) 
	{
		flagPopped = false;
		CenterPiece.SetActive(false);
		lastWinner = (leftSamurai) ? LastWinner.LEFT : LastWinner.RIGHT;

		// Trigger gui cues
		gui.FlashWhiteFadeOut();

		SwapPlayerPositions();

		StartCoroutine(WaitAndShowWinner());
	}