Exemplo n.º 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);
    }
Exemplo n.º 2
0
 // Member Methods
 public void Awake()
 {
     s_Instance = this;
 }
Exemplo n.º 3
0
	// Member Methods
	public void Awake()
	{
		s_Instance = this;
	}