/**隐藏界面**/ public virtual void Hide() { if (isTweenWin) { TweenType = ViewTweenType.Hide; AddTweenWin(false); currentState = ViewState.CloseTween; return; } currentState = ViewState.Close; gameObject.SetActive(false); }
//TODO: add resources recycle... /**关闭且删除界面**/ public virtual void close() { if (isTweenWin) { TweenType = ViewTweenType.Delete; AddTweenWin(false); currentState = ViewState.CloseTween; return; } currentState = ViewState.Close; // CloseWin(); }
/**在界面隐藏的情况下 显示界面**/ public virtual void Show() { gameObject.SetActive(true); Log.info("Show gameObject:" + gameObject.ToString()); if (isTweenWin) { TweenType = ViewTweenType.Show; AddTweenWin(true); currentState = ViewState.OpenTween; return; } else { currentState = ViewState.Open; VisibleShow(); } }