コード例 #1
0
ファイル: UIWindow.cs プロジェクト: saoniankeji/CommonLib
    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);
    }
コード例 #2
0
    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);
    }