void PlayOnFocus(bool on)
 {
     if (on && _isPlaying)
     {
         if (_isSequenceTriggerON == false)
         {
             Bridge4DS.Play(_dataSource.FDVUUID, on);
             StartCoroutine("SequenceTrigger");
             _isSequenceTriggerON = true;
         }
     }
     else
     {
         if (_isSequenceTriggerON == true)
         {
             Bridge4DS.Play(_dataSource.FDVUUID, on);
             StopCoroutine("SequenceTrigger");
             _isSequenceTriggerON = false;
         }
     }
 }
Ejemplo n.º 2
0
 //Public functions
 public void Play(bool on)
 {
     if (on)
     {
         if (_isSequenceTriggerON == false)
         {
             Bridge4DS.Play(_dataSource.FDVUUID, on);
             StartCoroutine("SequenceTrigger");
             _isSequenceTriggerON = true;
             _totalFramesPlayed   = 0;
             _playDate            = System.DateTime.Now;
         }
     }
     else
     {
         if (_isSequenceTriggerON == true)
         {
             Bridge4DS.Play(_dataSource.FDVUUID, on);
             StopCoroutine("SequenceTrigger");
             _isSequenceTriggerON = false;
         }
     }
     _isPlaying = on;
 }