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); } }
public static void Entry() { HarmonyInstance = HarmonyInstance.Create("taylor.brett.MiniMantaVehicle.mod"); HarmonyInstance.PatchAll(Assembly.GetExecutingAssembly()); MiniMantaVehicleAssetLoader.LoadAssets(); MiniMantaVehicleMod miniMantaVehicle = new MiniMantaVehicleMod(); miniMantaVehicle.Patch(); }