Example #1
0
 public void Awake()
 {
     MPConfig.Getconfig();
     MPLog.NewLog();
     Application.runInBackground = true;
     if (MPUtilsrunning || !ElectionAndCheck())
     {
         MPLog.Writelog("[Maritime Pack] Multiple copies. Using the first copy. Version: " + MPFunctions.GetVersion());
         Destroy(gameObject);
         return;
     }
     DontDestroyOnLoad(gameObject);
     MPUtilsrunning = true;
     MPLog.Writelog("[Maritime Pack] MPUtils v" + MPFunctions.GetVersion() + " Anchors Aweigh!");
 }