public WindowUIMenu(WindowImage wimg, WindowType wtype, List <string> wbuttons, string wtitle, string werror, bool wexit, int id, ExitDefault ex) { //GameObject unityHook = GameObject.Find("WindowUI"); uh = Resources.FindObjectsOfTypeAll <UnityHook>()[0]; // uh = (UnityHook) unityHook.GetComponent(typeof(UnityHook)); wum = new WindowUIManager(uh); windowUI = uh.windowUI; uh.activeMenu = this; img = wimg; type = wtype; buttons = wbuttons; title = wtitle; error = werror; exit = wexit; this.ex = ex; this.id = id; this.background = false; }
public WindowUIManager(UnityHook uh) { this.uh = uh; }