Movement Bug Fix

dev-main-mobile
Ali Sharoz 3 months ago
parent 1386b59afe
commit cb9ca2c494

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

Loading…
Cancel
Save