コード例 #1
0
 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];
 }
コード例 #2
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);
     }
 }