public void FreeSpectate() { if (CurrentPlayer != null) { CurrentPlayer.Hide(false); } SpectateMode = SpectateMode.Free; _crosshair.SetActive(false); }
private void DisableScriptsAndComponents() { foreach (var component in m_ScriptsToDisable) { component.enabled = false; } foreach (var gameObject in m_ObjectsToDisable) { gameObject.SetActive(false); } m_Graphics.Hide(); m_Collider.enabled = false; }
public void SetPlayer(PlayerGraphics playerGraphics) { if (CurrentPlayer != null) { CurrentPlayer.Hide(false); } CurrentPlayer = playerGraphics; CurrentPlayer.Hide(true); SpectateMode = SpectateMode.POV; _crosshair.SetActive(true); }