示例#1
0
    // Use this for initialization
    void Start()
    {
        //EmotionDeviceManager.Instance.Initialize ();
        manager = EmotionDeviceManager.Instance;

        Invoke("SubscribeEvents", 1);
    }
示例#2
0
    private void InitializeDeviceManager()
    {
        EmotionDeviceManager.Instance.Initialize();
        EmotionDeviceManager manager = EmotionDeviceManager.Instance;

        manager.ConnectedEvent += new EmotionDeviceManager.DeviceConnectedDeviceHandler(OnConnected);
        manager.NewZoneEvent   += new EmotionDeviceManager.NewZoneEventHandler(OnNewZone);
        //EmotionDeviceManager.Instance.SetThresholdAddition (threshholdTolerance);
    }
	// Use this for initialization
	void Start () {
		//EmotionDeviceManager.Instance.Initialize ();
		manager = EmotionDeviceManager.Instance;
		//creates the events to be subscribed 
		Invoke ("AssignButtonCalls", 0.5f);
		Invoke ("SubscribeEvents", 1);

		//sets the reference to load the 
		PreviousLevel = (int) GlobalVars.Scenes.Gathering;

		//calls to handle when to start and stop tracking heartrate based on the start and stop of the game timer
		CollectionTimer.OnStartGame += OnStartGame;
		CollectionTimer.OnEndGame += OnStopGame;

#if DEBUG
		// debugging statements to give indiciation of feedback
		OnOverThreshold += printOverThresholdMessage;
		OnNearThreshold += printNearThresholdMessage;
		OnUnderThreshold += printUnderThresholdMessage;
		OnConnectedToDevice += printConnectedMessage;
		OnConnectedToDevice += ChangeIndicator;

#endif
	}
    // Use this for initialization
    void Start()
    {
        //EmotionDeviceManager.Instance.Initialize ();
        manager = EmotionDeviceManager.Instance;
        //creates the events to be subscribed
        Invoke("AssignButtonCalls", 0.5f);
        Invoke("SubscribeEvents", 1);

        //sets the reference to load the
        PreviousLevel = (int)GlobalVars.Scenes.Gathering;

        //calls to handle when to start and stop tracking heartrate based on the start and stop of the game timer
        CollectionTimer.OnStartGame += OnStartGame;
        CollectionTimer.OnEndGame   += OnStopGame;

#if DEBUG
        // debugging statements to give indiciation of feedback
        OnOverThreshold     += printOverThresholdMessage;
        OnNearThreshold     += printNearThresholdMessage;
        OnUnderThreshold    += printUnderThresholdMessage;
        OnConnectedToDevice += printConnectedMessage;
        OnConnectedToDevice += ChangeIndicator;
#endif
    }
    // Use this for initialization
    void Start()
    {
        //EmotionDeviceManager.Instance.Initialize ();
        manager = EmotionDeviceManager.Instance;

        Invoke ("SubscribeEvents", 1);
    }