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; } }
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; } }
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; } }