-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoader.cs
More file actions
31 lines (26 loc) · 791 Bytes
/
Copy pathLoader.cs
File metadata and controls
31 lines (26 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace DeadfireMapTool
{
public class Loader
{
private static GameObject hostObject;
public static void Load()
{
hostObject = new GameObject("_HostGameObject_");
hostObject.AddComponent<DeadfireMapToolBehaviour>();
hostObject.AddComponent<ToggleTool>();
UnityEngine.Object.DontDestroyOnLoad(hostObject);
}
public static void Unload()
{
UnityEngine.Object.Destroy(hostObject);
}
}
public static class WinAPI
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr MessageBox(int hWnd, string text, string caption, uint type);
}
}