示例#1
0
 public static void switchCamera(bool oculus)
 {
     if (oculus)
     {
         OculusCamera.SetActive(true);
         MainCamera.SetActive(false);
     }
     else
     {
         OculusCamera.SetActive(false);
         MainCamera.SetActive(true);
     }
 }
示例#2
0
    void Start()
    {
        scoregui.SetActive(false);
        traininggui.SetActive(false);

        waveSound = GetComponent <AudioSource>();

        getLogDirectory();

        duration = "480";
        Scoring.updateDuration(duration);

        MainCamera   = GameObject.Find("Main Camera");
        OculusCamera = GameObject.Find("OVRCameraController");

        OculusCamera.SetActive(false);
//		isTraining = true;

        if (Application.loadedLevelName == "Game")        // BCI MODE
        {
            isTraining   = false;
            leapOn       = false;
            noAPE        = true;
            reverseHands = true;
//			gamePause();
        }
//		else if(Application.loadedLevelName == "Game_With_APE") // BCI MODE
//		{
//			isTraining = false;
//			leapOn = false;
//			noAPE = false;
//			//			gamePause();
//		}
        else if (Application.loadedLevelName == "Leap")        // HAND TRACKING MODE
        {
//			isTraining = true;
            leapOn       = true;
            reverseHands = false;
        }
//		else if (Application.loadedLevelName == "Training")
//		{
//			isTraining = true;
//			leapOn = false;
//		}



        gamePause();
    }