Пример #1
0
 private void Awake()
 {
     if (RoR2Application.maxPlayers != 4)
     {
         RoR2Application.isModded = true;
     }
     this.stopwatch.Start();
     UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
     if (RoR2Application.instance)
     {
         UnityEngine.Object.Destroy(base.gameObject);
         return;
     }
     RoR2Application.instance = this;
     if (!this.loaded)
     {
         ModLoader.Begin();
         hardMaxPlayers  = ModLoader.GetMaxPlayers();
         maxPlayers      = ModLoader.GetMaxPlayers();
         maxLocalPlayers = ModLoader.GetMaxPlayers();
         this.OnLoad();
         this.loaded = true;
     }
 }
Пример #2
0
 private static void Init()
 {
     ModLoader.Begin();
 }