Beispiel #1
0
        private void LateUpdate()
        {
            _oldGameState = _newGameState;
            _newGameState = new GameState();

            _handlerHub.ProcessActions(_oldGameState, _newGameState);

            if (Input.GetKeyDown(KeyCode.F12))
            {
                _handlerHub.AddTrigger(new F12PressedTrigger());
            }
            if (Input.GetKeyDown(KeyCode.F6))
            {
                _handlerHub.AddTrigger(new SliderAttemptTrigger());
            }
            if (Input.GetKeyDown(KeyCode.F7))
            {
                _handlerHub.AddTrigger(new AddSettingsButtonTrigger());
            }

            EditableInterface.ProgressFrame();

            if (gameObject != null)
            {
                GameObject go;
                if (!_gameObjectRepo.TryGet("BrodeeGameObject", out go))
                {
                    Logger.AppendLine("Added BrodeeGameObject");
                    _gameObjectRepo.AddOrUpdate("BrodeeGameObject", gameObject);
                }
            }
        }
Beispiel #2
0
 private void Awake() => _oldGameState = new GameState();