Exemple #1
0
 void OnDisable()
 {
     if (s_Instance == this)
     {
         s_Instance = null;
     }
 }
Exemple #2
0
        void OnEnable()
        {
            //if(!Console.HasCommand("STREAMING")) Console.AddCommand(new LevelStreamingCommand());

            if (s_Instance != null)
            {
                throw new InvalidOperationException("LevelStreamingManager Already Exists");
            }
            else
            {
                s_Instance = this;
            }
        }