public static void SetPlayersViewPerspectiveToGalaxy(Transform _PlayerHead) { s_IsObserverOutside = true; // Set the perspective of the galaxy camera s_GalaxyCamera.transform.parent = _PlayerHead; s_GalaxyCamera.transform.localPosition = Vector3.zero; s_GalaxyCamera.transform.localRotation = Quaternion.identity; // Unparent the ship camera s_ShipCamera.transform.parent = null; // Update the HUD CHUDRoot.UpdateHUDGameCamera(PlayersHeadCamera.camera); }
// Member Methods public void Awake() { s_Instance = this; }