Possible Fix to Pause Menu Enable Desync

This commit is contained in:
Julia Butenhoff 2022-04-25 13:36:49 -05:00
parent 2a780ac346
commit 7515fc15d8

View File

@ -26,9 +26,7 @@ public class Countdown : NetworkBehaviour {
countdown_text.text = "1";
yield return new WaitForSecondsRealtime(1f);
countdown_text.text = "Go!";
if (IsHost){
EnablePauseMenuServerRPC();
}
EnablePauseMenuServerRPC();
}
[ServerRpc(RequireOwnership = false)]
private void EnablePauseMenuServerRPC(){