|
|
|
@ -47,8 +47,8 @@ public class StartingTimer : NetworkBehaviour
|
|
|
|
|
}
|
|
|
|
|
timerValue.Value = -1; // Indicate "GO"
|
|
|
|
|
yield return new WaitForSeconds(0.5f);
|
|
|
|
|
StartingTimerEnded?.Invoke();
|
|
|
|
|
// Notify clients to disable the black screen
|
|
|
|
|
|
|
|
|
|
BlackScreenAlphaDisablerClientRpc();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -67,6 +67,7 @@ public class StartingTimer : NetworkBehaviour
|
|
|
|
|
[ClientRpc]
|
|
|
|
|
private void BlackScreenAlphaDisablerClientRpc()
|
|
|
|
|
{
|
|
|
|
|
StartingTimerEnded?.Invoke();
|
|
|
|
|
BlackScreen.gameObject.SetActive(false);
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
//BlackScreen.DOFade(0, 0.25f).OnComplete(() =>
|
|
|
|
|