private void UnregisterTick() { if (!_isTickRegistered) { return; } _isTickRegistered = false; TweenTicker.RemoveTick(this._tickAction); }
private void RegisterTick() { if (_isTickRegistered) { return; } _isTickRegistered = true; TweenTicker.AddTick(this._tickAction); }
private static void OnEditorUpdate() { //only work when Application is not playing. if (Application.isPlaying) { return; } var deltaTime = UnityEditor.EditorApplication.timeSinceStartup - _lastEditorUpdateTime; _lastEditorUpdateTime = UnityEditor.EditorApplication.timeSinceStartup; var data = new TweenTicker.TickData((float)deltaTime, Time.timeScale); TweenTicker.Tick(data); }
void OnApplicationQuit() { TweenTicker.Clear(); }
private void Update() { var data = new TweenTicker.TickData(Time.unscaledDeltaTime, Time.timeScale); TweenTicker.Tick(data); }