|
|
|
|
|
|
public void OnSymbolDeactivated() |
|
|
|
{ |
|
|
|
if (--m_remainingSymbolCount <= 0) |
|
|
|
WaitForEndingSequence(); |
|
|
|
WaitForEndingSequence_ClientRpc(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
private void WaitForEndingSequence() |
|
|
|
[ClientRpc] |
|
|
|
private void WaitForEndingSequence_ClientRpc() |
|
|
|
{ |
|
|
|
m_scorer.OnGameEnd(); |
|
|
|
m_introOutroRunner.DoOutro(EndGame); |
|
|
|
|
|
|
{ |
|
|
|
StartCoroutine(EndGame_ClientsFirst()); |
|
|
|
if (IsHost) |
|
|
|
StartCoroutine(EndGame_ClientsFirst()); |
|
|
|
} |
|
|
|
|
|
|
|
private IEnumerator EndGame_ClientsFirst() |
|
|
|