public static DebugStateManager GetDebugStateManager() { if (_debug == null) { _debug = GameObject.FindGameObjectWithTag("Game").GetComponent <DebugStateManager>(); } return(_debug); }
public static void Reload() { _gameManager = null; _flowManager = null; _stateManager = null; _inventoryManager = null; _cameraManager = null; _assetManager = null; _audioManager = null; _debug = null; CachedCharacters.Clear(); }
private void Start() { _debug = GlobalInstanceManager.GetDebugStateManager(); if (_debug.skipTitleScreen) { DeactivateUiAndStartPlaying(); } else { StartCoroutine(StartUI()); } }
private void Awake() { _stateManager = GlobalInstanceManager.GetStateManager(); _mainCharacter = GlobalInstanceManager.GetMainCharacter(); _debug = GlobalInstanceManager.GetDebugStateManager(); }