コード例 #1
0
        public override bool Update()
        {
            bool result = true;

            EndState.Step step = this.step;
            if (step != EndState.Step.END_ACTION)
            {
                if (step != EndState.Step.WAIT_FADE)
                {
                    if (step == EndState.Step.END)
                    {
                        this.resultCode = ResultCode.SUCCESS;
                        result          = false;
                    }
                }
                else
                {
                    this.fadeWaitFrameCount--;
                    if (0 >= this.fadeWaitFrameCount)
                    {
                        this.step = EndState.Step.END;
                    }
                }
            }
            else
            {
                if (ClassSingleton <AdventureSceneData> .Instance.sceneEndAction != null)
                {
                    ClassSingleton <AdventureSceneData> .Instance.sceneEndAction();
                }
                ClassSingleton <AdventureSceneData> .Instance.adventureCamera.camera3D.enabled = false;
                ClassSingleton <AdventureSceneData> .Instance.scriptObjectRoot.SetActive(false);

                this.step = EndState.Step.WAIT_FADE;
            }
            return(result);
        }
コード例 #2
0
 public EndState()
 {
     this.step = EndState.Step.END_ACTION;
     this.fadeWaitFrameCount = 2;
 }