Esempio n. 1
0
        /// <summary>
        /// 系统监视器.包含常见的系统信息,范围17*12
        /// </summary>
        public static GameObject GetSystemInspector(Vector2 pos)
        {
            TextBox         textBox = UIFactroy.CreateTextBox(pos, 15, 10);
            SystemInspector script  = textBox.AddComponent <SystemInspector>();

            return(textBox.GameObject);
        }
Esempio n. 2
0
        /// <summary>
        /// 用于显示鼠标检测到的事件
        /// 范围5*10
        /// </summary>
        public static GameObject GetMouseEventUI(Vector2 pos)
        {
            TextBox textBox = UIFactroy.CreateTextBox(pos, 5, 10);

            textBox.AddComponent <MouseEventBox>();
            return(textBox.GameObject);
        }
Esempio n. 3
0
        /// <summary>
        /// 显示系统中各个系统耗时
        /// 范围14*17
        /// </summary>
        public static GameObject GetTimerUI(Vector2 pos, int interval = 10)
        {
            TextBox  textBox = UIFactroy.CreateTextBox(pos, 12, 15);
            TimerBox script  = textBox.AddComponent <TimerBox>();

            script.Interval = interval;
            return(textBox.GameObject);
        }