public void ChangeCamera3()
 {
     Camera2.SetActive(false);
     Camera3.SetActive(false);
     Camera4.SetActive(false);
     Camera1.SetActive(true);
 }
Esempio n. 2
0
 public void Redraw()
 {
     Camera1.ZBuffer.Clear();
     Camera1.DrawScene();
     Camera2.ZBuffer.Clear();
     Camera2.DrawScene();
     Camera3.ZBuffer.Clear();
     Camera3.DrawScene();
     Camera4.ZBuffer.Clear();
     Camera4.DrawScene();
 }
 private void InitCamarasPosition()
 {
     Camera1.GetComponent <Transform>().position = cameraPositions[0];
     Camera2.GetComponent <Transform>().position = cameraPositions[1];
     Camera3.GetComponent <Transform>().position = cameraPositions[2];
     Camera4.GetComponent <Transform>().position = cameraPositions[3];
     Camera5.GetComponent <Transform>().position = cameraPositions[4];
     Camera6.GetComponent <Transform>().position = cameraPositions[5];
     Camera7.GetComponent <Transform>().position = cameraPositions[6];
     Camera8.GetComponent <Transform>().position = cameraPositions[7];
     Camera.GetComponent <Transform>().position  = cameraPositions[8];
 }
Esempio n. 4
0
 public void OnCamera1()
 {
     Canvas.transform.parent = Camera1.transform;
     Image.SetActive(false);
     Camera1.SetActive(true);
     Camera2.SetActive(false);
     Camera3.SetActive(false);
     Camera4.SetActive(false);
     Camera1button.sprite = Camera1buttonSprite[1];
     Camera2button.sprite = Camera2buttonSprite[0];
     Camera3button.sprite = Camera3buttonSprite[0];
     Camera4button.sprite = Camera4buttonSprite[0];
 }
 private void handlePositionFOV(string arg0)
 {
     if (null != arg0 && "" != arg0)
     {
         Camera1.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera2.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera3.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera4.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera5.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera6.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera7.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera8.GetComponent <Camera>().fieldOfView = float.Parse(arg0);
         Camera.GetComponent <Camera>().fieldOfView  = float.Parse(arg0);
     }
 }
 public void ChangeCamera2()
 {
     Camera4.SetActive(true);
 }