コード例 #1
0
        public override void Load()
        {
            LILogger.Init();
            AssetDB.Init();

            Harmony.PatchAll();
            LILogger.LogMsg("LevelImposter Initialized.");
        }
コード例 #2
0
 public override void Load()
 {
     LILogger.Init();
     VersionCheck.CheckVersion();
     VersionCheck.CheckNewtonsoft();
     AssetDB.Init();
     Harmony.PatchAll();
     LILogger.LogMsg("LevelImposter Initialized.");
 }
コード例 #3
0
 public static bool CheckVersion()
 {
     if (Application.version != AMONG_US_VERSION)
     {
         LILogger.LogWarn("Warning: This version of LevelImposter is meant for Among Us " + AMONG_US_VERSION + ". You may experience unexpected behavior!");
         return(false);
     }
     return(true);
 }
コード例 #4
0
 public static void Postfix(AmongUsClient __instance)
 {
     foreach (AssetReference objRef in __instance.ShipPrefabs)
     {
         GameObject obj = (GameObject)objRef.Asset;
         AssetDB.ImportMap(obj);
     }
     LILogger.LogInfo("Found and stored prefabs");
 }