Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (ChangeCamera.GetUpPool() && camera.fieldOfView < 179)
     {
         camera.fieldOfView = camera.fieldOfView + 1; ChangeCamera.FalseUpPool();
     }
     if (ChangeCamera.GetDownPool() && camera.fieldOfView > 1)
     {
         camera.fieldOfView -= 1.0f; ChangeCamera.FalseDownPool();
     }
 }