diff --git a/Assets/RocketSphere.cs b/Assets/RocketSphere.cs index cb5dee9..ff9d635 100644 --- a/Assets/RocketSphere.cs +++ b/Assets/RocketSphere.cs @@ -39,8 +39,6 @@ public class RocketSphere : NetworkBehaviour AudioSource hyperspaceSound; AudioSource engineSound; - AudioSource [] musicLoops; - public GameObject explosionPrefab; Rigidbody rb; [SyncVar] Color RocketColor = Color.white; @@ -460,8 +458,11 @@ void Update() if (!rocket) return; - // make sure the state matches the server state - if (visible != rocket.activeSelf) + // make sure the state matches the server state, + // don't do this on the server as you may enable the ship + // while it is spawning in, this is only for clients + // to catch up the other rocket enable states in the game + if ((visible != rocket.activeSelf) && isClient) { rocket.SetActive(visible); } diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset index 4794c37..9861984 100644 Binary files a/ProjectSettings/GraphicsSettings.asset and b/ProjectSettings/GraphicsSettings.asset differ diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 1a056c9..13d1f3b 100644 Binary files a/ProjectSettings/ProjectSettings.asset and b/ProjectSettings/ProjectSettings.asset differ