private void TransferPlayerPerspectiveToGalaxySpace() { CGameCameras.SetPlayersViewPerspectiveToGalaxy(m_cActorHead.transform); // Add the galaxy observer component gameObject.AddComponent <GalaxyObserver>(); }
// Member Methods public void Start() { s_Instance = this; CNetwork.Connection.EventConnectionAccepted += new CNetworkConnection.OnConnect(OnConnect); CNetwork.Connection.EventDisconnect += new CNetworkConnection.OnDisconnect(OnDisconnect); }
public void TransferPlayerPerspectiveToShipSpace() { CGameCameras.SetPlayersViewPerspectiveToShip(m_cActorHead.transform); // Remove the galaxy observer component Destroy(gameObject.GetComponent <GalaxyObserver>()); }