Esempio n. 1
0
 public override void Load()
 {
     base.Load();
     holder = new GameObject();
     holder.AddComponent <EditorHotkey>().Mod = this;
     WorldEditorCamera.InitSingleton(holder);
     UnityEngine.Object.DontDestroyOnLoad(holder);
 }
Esempio n. 2
0
 public static void InitSingleton(GameObject obj)
 {
     inst         = obj.AddComponent <WorldEditorCamera>();
     inst.enabled = false;
 }