Exemplo n.º 1
0
        private void Awake()
        {
            main = this;

            iGUI = gameObject.GetComponent <IGUI>();

            iGUI.WakeUp();

            CreateWindows();

            CreateGroups();
        }
        public GUI_window(GUI_Base guiBase, Window window, WindowControlHandler controlHandler, WindowCloseHandler closeHandler)
        {
            GuiBase            = guiBase;
            WindowRect         = window.windowRect;
            TitleText          = window.titleText;
            ControlHandler     = new WindowControlHandler(controlHandler);
            CloseHandler       = new WindowCloseHandler(closeHandler);
            _hasMoveable       = window.hasMoveable;
            _hasMinimizeButton = window.hasMinimizeButton;
            _hasCloseButton    = window.hasCloseButton;
            _hasToolTipButton  = window.hasToolTipButton;
            _HasTimeInTitle    = window.hasTimeInTitle;

            ID      = window.windowID;
            Enabled = window.enabled;
            PreInitWindow();
        }
Exemplo n.º 3
0
 public void Awake()
 {
     gameObject.AddComponent <Indestructible>();
     GuiBase = gameObject.AddComponent <GUI_Base>();
 }