public void CameraTask(string task)
 {
     if (cameraHold)
     {
         cs.EnableGyro();
         cameraHold = !cameraHold;
     }
     else
     {
         cs.StopGyro();
         cameraHold = !cameraHold;
     }
 }
 public void CameraTask(string task)
 {
     if (cameraHold)
     {
         cs.EnableGyro();
         cameraHold = !cameraHold;
         System.Threading.Thread.Sleep(100);
         layer = ls.GetLayer("DynamicLayer");
         layer.transform.eulerAngles = new Vector3(Camera.main.transform.eulerAngles.x, Camera.main.transform.eulerAngles.y, 0);
         layer = ls.GetLayer("ApplicationLayer");
         layer.transform.eulerAngles = new Vector3(Camera.main.transform.eulerAngles.x, Camera.main.transform.eulerAngles.y, 0);
     }
     else
     {
         cs.StopGyro();
         cameraHold = !cameraHold;
     }
 }