void OnDisable() { if (s_Instance == this) { s_Instance = null; } }
void OnEnable() { //if(!Console.HasCommand("STREAMING")) Console.AddCommand(new LevelStreamingCommand()); if (s_Instance != null) { throw new InvalidOperationException("LevelStreamingManager Already Exists"); } else { s_Instance = this; } }