Exemple #1
0
        public static DebugStateManager GetDebugStateManager()
        {
            if (_debug == null)
            {
                _debug = GameObject.FindGameObjectWithTag("Game").GetComponent <DebugStateManager>();
            }

            return(_debug);
        }
Exemple #2
0
 public static void Reload()
 {
     _gameManager      = null;
     _flowManager      = null;
     _stateManager     = null;
     _inventoryManager = null;
     _cameraManager    = null;
     _assetManager     = null;
     _audioManager     = null;
     _debug            = null;
     CachedCharacters.Clear();
 }
Exemple #3
0
        private void Start()
        {
            _debug = GlobalInstanceManager.GetDebugStateManager();

            if (_debug.skipTitleScreen)
            {
                DeactivateUiAndStartPlaying();
            }
            else
            {
                StartCoroutine(StartUI());
            }
        }
Exemple #4
0
 private void Awake()
 {
     _stateManager  = GlobalInstanceManager.GetStateManager();
     _mainCharacter = GlobalInstanceManager.GetMainCharacter();
     _debug         = GlobalInstanceManager.GetDebugStateManager();
 }