コード例 #1
0
        /// <summary>
        /// データの初期化をする.
        /// 現在のステージ情報獲得のため,MoveStageRequestが必要.
        /// </summary>
        /// <param name="stageData"></param>
        private void DataInit(MoveStageRequest request)
        {
            this.stageData     = request.StageInformation.StageData;
            this.worldData     = request.StageInformation.WorldData;
            this.returnToScene = request.ReturnToScene;

            this.Reset();
        }
コード例 #2
0
        protected override void Init()
        {
            this.playerDeathManager      = this.GetComponent <PlayerDeathManager>();
            this.coinScoreManager        = this.GetComponent <CoinScoreManager>();
            this.playerStageClearManager = this.GetComponent <PlayerStageClearManager>();

            if (GameManager.NowStageInformation == null)
            {
                var index       = this.worldData.GetStageIndex(this.stageData.StageId);
                var information = new StageInformation(this.worldData.WorldId, index);
                var request     = new MoveStageRequest(information, this.returnToScene);
                GameManager.ImplyRequest(request);
            }
            this.DataInit(GameManager.NowStageInformation);
        }