コード例 #1
0
ファイル: RoR2Application.cs プロジェクト: zkitX/SeikoML
 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
ファイル: Modloader.cs プロジェクト: jjpdx/SeikoML
 private static void Init()
 {
     ModLoader.Begin();
 }