void Awake() { SingeltonCheck(); DontDestroyOnLoad(gameObject); // This keeps the GM alive in all scenes; PlayerInputManager = GetComponent <PlayerInputManager>(); OrbSystemMenuManager = GetComponent <OrbSystemMenuManager>(); CutSceneManager = GetComponent <CutSceneManager>(); Manager_LoadLevel = GetComponent <GameManager_LoadLevel>(); }
void Start() { orbSystemMenu = GameManager.Instance.OrbSystemMenuManager; levelLoader = GameManager.Instance.Manager_LoadLevel; if (sceneName == null) { Debug.LogError("Missing Scene Index on " + name + "--> Need Index to loade level "); } if (orbSystemMenu == null) { Debug.LogError("OrbSystemMenuManager IS NULL on = " + name); } }