public void Reset() { state = ElementState.Idle; InAnimation?.Reset(); OutAnimation?.Reset(); InAnimation?.Apply(ref props); OutAnimation?.Apply(ref props); SaveProperties(); }
public void Hide() { state = ElementState.Hiding; InAnimation?.Reset(); SaveProperties(); OutAnimation?.Play(true); OutAnimation?.Apply(ref props); if (OutAnimation != null) { OutAnimation.OnFinished += ZeroProperties; } }