示例#1
0
 protected void Awake()
 {
     eyesClosedCounter = 0;
     _eyexHost         = EyeXHost.GetInstance();
     _dataProvider     = _eyexHost.GetEyePositionDataProvider();
     eyesOpenedQueue   = new Queue <EyesOpened> ();
 }
示例#2
0
 protected void Awake()
 {
     Debug.Log("awake");
     this.eyexHost        = EyeXHost.GetInstance();
     this.dataProvider    = eyexHost.GetEyePositionDataProvider();
     this.eyesOpenedQueue = new Queue <EyesOpened> ();
 }
示例#3
0
    void Awake()
    {
        eyexHost = EyeXHost.GetInstance();
        gazePointDataProvider   = eyexHost.GetGazePointDataProvider(GazePointDataMode.LightlyFiltered);
        eyePositionDataProvider = eyexHost.GetEyePositionDataProvider();

        timeTillFirstDoorOpens    = 0.0f;       //9.0f;
        timeTillWallSoundStarts   = 0.0f;       //3.0f;
        timeTillWakeupSoundStarts = 0.0f;       //2.0f;
        timeEyesAreClosed         = 0.0f;
        blinkingLightCounter      = 0.0f;

        wakeupSoundPlayed             = false;
        openFirstDoorAnimationStarted = false;
        wallTriggerStarted            = false;
        wallSoundPlayed = false;


        // load the blinking lights
        blinkingLights = new ArrayList();
        blinkingLights.Add(GameObject.Find("Panel_Colored_01"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_02"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_03"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_04"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_05"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_06"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_07"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_08"));
        blinkingLights.Add(GameObject.Find("Panel_Colored_09"));
        currentBlinkingLightRemoved = false;

        Debug.Log("Awake: " + this.ToString());
    }
示例#4
0
    void Awake()
    {
        eyexHost = EyeXHost.GetInstance();
        gazePointDataProvider   = eyexHost.GetGazePointDataProvider(GazePointDataMode.LightlyFiltered);
        eyePositionDataProvider = eyexHost.GetEyePositionDataProvider();

        timeTillWallSoundStarts = 0.0f;         //3.0f;
        timeEyesAreClosed       = 0.0f;
        blinkingLightCounter    = 0.0f;

        wakeupSoundPlayed             = false;
        openFirstDoorAnimationStarted = false;
        wallTriggerStarted            = false;
        waitForEyeClose = false;

        // load the blinking lights
        blinkingLights = new ArrayList();
        blinkingLights.Add(GameObject.Find("Panel_01"));
        blinkingLights.Add(GameObject.Find("Panel_02"));
        blinkingLights.Add(GameObject.Find("Panel_03"));
        blinkingLights.Add(GameObject.Find("Panel_04"));
        blinkingLights.Add(GameObject.Find("Panel_05"));
        blinkingLights.Add(GameObject.Find("Panel_06"));

        // set a deafult name for lastGazedWallLightName
        this.lastGazedWallLightName = "";
    }
 protected void Awake()
 {
     _eyexHost     = EyeXHost.GetInstance();
     _dataProvider = _eyexHost.GetEyePositionDataProvider();
 }
 protected void Awake()
 {
     _eyexHost = EyeXHost.GetInstance();
     _dataProvider = _eyexHost.GetEyePositionDataProvider();
 }
示例#7
0
 public void Awake()
 {
     _eyeXHost          = EyeXHost.GetInstance();
     _dataProvider      = _eyeXHost.GetEyePositionDataProvider();
     _gazePointProvider = _eyeXHost.GetGazePointDataProvider(GazePointDataMode.LightlyFiltered);
 }
示例#8
0
 public void Awake()
 {
     _eyeXHost = EyeXHost.GetInstance();
     _dataProvider = _eyeXHost.GetEyePositionDataProvider();
     _gazePointProvider = _eyeXHost.GetGazePointDataProvider(GazePointDataMode.LightlyFiltered);
 }