示例#1
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! 初期化関数
        protected override void StartGearProcess()
        {
            base.StartGearProcess();
            _logicStateChanger = _gear.Absorb <LogicStateChanger>(new PosInfos());

            ArkLog.Debug("GameView Start");
        }
示例#2
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! 初期化
        protected override void StartGearProcess()
        {
            base.StartGearProcess();
            ArkLog.Debug("Game Loop Start");

            // FrameManagerの時間初期化
            _frameManager.RecordLastUpdateSeconds();
        }
示例#3
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! 初期化
        protected override void StartGearProcess()
        {
            base.StartGearProcess();

            _gameLogic = _gear.Absorb <GameLogic>(new PosInfos());

            ArkLog.Debug("BaseSceneLogic Start");
        }
示例#4
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! 初期化
        protected override void StartGearProcess()
        {
            base.StartGearProcess();
            _gameView = _gear.Absorb <GameView>(new PosInfos());
            IBaseSceneViewOrder sceneView = _gameView.StartUpSceneView(_currentSceneLogic);

            _currentSceneLogic.SetSceneViewOrder(sceneView);

            ArkLog.Debug("Game Logic Start");
        }
示例#5
0
        protected void Initialize(ISetting setting)
        {
            ArkLog.Init(setting);

            _dataLoadManager = gameObject.AddComponent <DataLoadManager>();
            _dataLoadManager.Init(setting.BundleUrl);
            _dataLoadManager.LoadAllAsset();

            _gameLoop = new GameLoop(setting, _gameView, _dataLoadManager);
            _gameLoop.InitGear();
        }
示例#6
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! コマンド処理
        public void CommandProcess(ICommand command)
        {
            Type commandType = command.GetType();

            if (commandType == typeof(ButtonCommand))
            {
                ButtonCommand buttonCommand = (ButtonCommand)command;
                ButtonCommandProcess(buttonCommand);
            }
            else
            {
                ArkLog.Error("処理を定義してないコマンドが来た");
            }
        }
示例#7
0
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
 //! 解除
 protected override void EndGearProcess()
 {
     base.EndGearProcess();
     ArkLog.Debug("Game Loop End");
 }
示例#8
0
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
 //! コマンド通知
 public virtual void NotifyCommand(ICommand command)
 {
     ArkLog.Debug("NotifyCommand");
     _logicStateChanger.NotifyCommand(command);
 }
示例#9
0
        // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
        //! 解除処理
        protected override void EndGearProcess()
        {
            base.EndGearProcess();

            ArkLog.Debug("BaseSceneView End");
        }
示例#10
0
 void OnApplicationQuit()
 {
     _dataLoadManager.Release();
     _gameLoop.AllDisposeGear();
     ArkLog.Release();
 }