public virtual void Init() { animator = gameObject.GetComponent<Animator> (); MUIDisplayState = UIDisplayState.Disable; initPosition = this.transform.localPosition; OutAction = new SkyAniCallBack (); InAction = new SkyAniCallBack (); InAction.SetStartMethod (() => { MUIDisplayState = UIDisplayState.Showining;}); InAction.SetCompleteMethod (() => { MUIDisplayState = UIDisplayState.Normal;}); OutAction.SetStartMethod (() => { MUIDisplayState = UIDisplayState.Showouting;}); OutAction.SetCompleteMethod (() => { MUIDisplayState = UIDisplayState.Disable;}); InAction.AddCompleteMethod (TickUntilQuit); }
public virtual void Init() { animator = gameObject.GetComponent <Animator> (); MUIDisplayState = UIDisplayState.Disable; initPosition = this.transform.localPosition; OutAction = new SkyAniCallBack(); InAction = new SkyAniCallBack(); InAction.SetStartMethod(() => { MUIDisplayState = UIDisplayState.Showining; }); InAction.SetCompleteMethod(() => { MUIDisplayState = UIDisplayState.Normal; }); OutAction.SetStartMethod(() => { MUIDisplayState = UIDisplayState.Showouting; }); OutAction.SetCompleteMethod(() => { MUIDisplayState = UIDisplayState.Disable; }); InAction.AddCompleteMethod(TickUntilQuit); }