Beispiel #1
0
 private void DrawMiniMantaVehicleMenu()
 {
     if (GUILayout.Button("Spawn Mini Manta Vehicle"))
     {
         GameObject gameObject = MiniMantaVehicleMod.CreateMiniMantaVehicle();
         gameObject.transform.position = Camera.main.transform.position + Camera.main.transform.forward * 4f;
         gameObject.transform.LookAt(Player.main.transform);
     }
 }
Beispiel #2
0
        public static void Entry()
        {
            HarmonyInstance = HarmonyInstance.Create("taylor.brett.MiniMantaVehicle.mod");
            HarmonyInstance.PatchAll(Assembly.GetExecutingAssembly());

            MiniMantaVehicleAssetLoader.LoadAssets();
            MiniMantaVehicleMod miniMantaVehicle = new MiniMantaVehicleMod();

            miniMantaVehicle.Patch();
        }