/// <summary> /// Stops the animation and resets time to 0. /// If update is true, this method will call SeekTo with time 0. /// Else, only the time is set to 0 and the view state will stay. /// </summary> public void Stop(bool update = false) { isPlaying = false; if (update) { SeekTo(0f, false); } else { curTime = 0f; } FateFX.RemoveItem(this); InvokeResetter(); }
/// <summary> /// Pauses the animation. /// </summary> public void Pause() { isPlaying = false; FateFX.RemoveItem(this); }