Пример #1
0
    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);
    }
Пример #2
0
 // Member Methods
 public void Awake()
 {
     s_Instance = this;
 }
Пример #3
0
	// Member Methods
	public void Awake()
	{
		s_Instance = this;
	}