Exemplo n.º 1
0
 private void PlayCompose(float time)
 {
 #if UNITY_EDITOR
     if (Application.isPlaying)
     {
         _time = (this._ticker is UpdateTicker) ? Time.time : Time.realtimeSinceStartup;
     }
     else
     {
         _time = Time.realtimeSinceStartup;
     }
 #else
     _time = (this._ticker is UpdateTicker) ? Time.time : Time.realtimeSinceStartup;
 #endif
     _isPlaying = true;
     _ticker.AddTimer(this);
     if (_classicHandlers != null && _classicHandlers.OnPlay != null)
     {
         _classicHandlers.OnPlay.Execute();
     }
     Tick(time);
 }