public void OpenVertical() { if (State != OpenableState.Closed) { return; } Open(); LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelChangeAnimation.Play(() => { NameButtonField.PlayAnimation(() => { if (_openListOnOpen) { List.Open(Opened); } else { Opened(); } }); }); }
public void OpenHorizontal(Action callback = null) { if (State != OpenableState.Closed) { return; } Open(); callback += Opened; LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelEnterAnimation.Play(() => { NameButtonField.PlayAnimation(() => { if (_openListOnOpen) { List.Open(callback); } else { Opened(); } }); }); }