Example #1
0
 private static void OnBeforeSceneLoaded()
 {
     if (CoreBehaviour.IsCompileTimeEnabled()) // Ensure the core behaviour is enabled
     {
         CoreBehaviour.CreateCoreBehaviour();
     }
     else // Core behaviour is not enabled
     {
         Debug.LogWarning("Lightweight management system is currently disabled, add 'LWMS' to Scripting Define Symbols in the player settings to enable it.");
     }
 }
 /// <summary>
 /// Check the status to see whether the lightweight management system is enabled or not.
 /// </summary>
 /// <returns></returns>
 private bool CheckStatus()
 {
     if (CoreBehaviour.IsCompileTimeEnabled()) // Ensure the system is enabled
     {
         return(true);
     }
     else // System is disabled
     {
         Debug.LogError("Lightweight management system is disabled!");
         return(false);
     }
 }