Ejemplo n.º 1
0
 public void SwitchTo(SolarOrbit now)
 {
     curPlanet = now;
     cam.SetPlanetTarget(curPlanet.transform);
     cam.camRot.x = CamController.VYAngle(Vector3.zero, curPlanet.transform.position);
     enabled      = true;
 }
Ejemplo n.º 2
0
 void OnEnable()
 {
     //   lookupPanel.SetActive (true);
     cam.SetPlanetTarget(curMoon.transform);
     cam.SetCamDistance(curMoon, false);
     cam.lockTarget = curMoon.transform.parent;
     cam.camRot.x   = CamController.VYAngle(Vector3.zero, curMoon.transform.position) - 90;
 }