async void AnimateOnce() | Restarts the animation and stops it again after GetLengthOfAnimationInSeconds. |
virtual float GetLengthOfAnimationInSeconds() | Length of one run, used by AnimateOnce. Returns 0 unless overridden. |
virtual void ResetState() | Called when the animation stops, to put the transform back. Does nothing unless overridden. |
void StartAnimating() | Registers UpdateAnimation with the budgeted updater if not already running. |
void StopAnimating() | Unregisters the update and calls ResetState. |
protected virtual void Start() | Works out whether it may run on this side and starts animating if auto start is on. |
protected abstract void UpdateAnimation() | Called each budgeted update while active. Subclasses move the transform here. |