Exemplo n.º 1
0
 public void CenterRotate(int i)
 {
     if (s)
     {
         RotateAndZoomManager.StartCameraAroundCenter(transform);
         button2.GetComponentInChildren <Text>().text = s2 + on;
         s = false;
     }
     else
     {
         RotateAndZoomManager.StopCameraAroundCenter();
         button2.GetComponentInChildren <Text>().text = s2 + off;
         s = true;
     }
 }
Exemplo n.º 2
0
 public void Zoom(int i)
 {
     if (ss)
     {
         RotateAndZoomManager.StartCameraZoom(transform, 5, 50);
         button3.GetComponentInChildren <Text>().text = s3 + on;
         ss = false;
     }
     else
     {
         RotateAndZoomManager.StopCameraZoom();
         button3.GetComponentInChildren <Text>().text = s3 + off;
         ss = true;
     }
 }
Exemplo n.º 3
0
 public void SelfRotate(int i)
 {
     if (a)
     {
         RotateAndZoomManager.StartCameraSelfRotate();
         button1.GetComponentInChildren <Text>().text = s1 + on;
         a = false;
     }
     else
     {
         RotateAndZoomManager.StopCameraSelfRotate();
         button1.GetComponentInChildren <Text>().text = s1 + off;
         a = true;
     }
 }