public void Hide(Action onComplete) { if (windowAnim != null) { windowAnim.Close(delegate() { if (onComplete != null) { onComplete(); } }); } }
public void Show(Action _onComplete) { this.onComplete = _onComplete; windowAnimation.Open(); this.DelayedCall(() => { windowAnimation.Close(delegate() { Scenes.UnloadAsync(RoundSceneInfo); _onComplete(); }); }, WindowDuration); }