示例#1
0
 public static void Reset(GameObject aObj)
 {
     StyleFolder      = aObj.GetComponent <StyleFolder>();
     StyleGeneral     = aObj.GetComponent <StyleGeneral>();
     StyleList        = aObj.GetComponent <StyleList>();
     StyleLoopTool    = aObj.GetComponent <StyleLoopTool>();
     StyleMenu        = aObj.GetComponent <StyleMenu>();
     StylePlayer      = aObj.GetComponent <StylePlayer>();
     StyleProgressbar = aObj.GetComponent <StyleProgressbar>();
     StyleScrollbar   = aObj.GetComponent <StyleScrollbar>();
     StyleSlider      = aObj.GetComponent <StyleSlider>();
     StyleTable       = aObj.GetComponent <StyleTable>();
     StyleWindow      = aObj.GetComponent <StyleWindow>();
 }
示例#2
0
        static GuiStyleSet()
        {
            GameObject obj = ( GameObject )Resources.Load("Prefab/GuiStyleSet", typeof(GameObject));

            StyleFolder      = obj.GetComponent <StyleFolder>();
            StyleGeneral     = obj.GetComponent <StyleGeneral>();
            StyleList        = obj.GetComponent <StyleList>();
            StyleLoopTool    = obj.GetComponent <StyleLoopTool>();
            StyleMenu        = obj.GetComponent <StyleMenu>();
            StylePlayer      = obj.GetComponent <StylePlayer>();
            StyleProgressbar = obj.GetComponent <StyleProgressbar>();
            StyleScrollbar   = obj.GetComponent <StyleScrollbar>();
            StyleSlider      = obj.GetComponent <StyleSlider>();
            StyleTable       = obj.GetComponent <StyleTable>();
            StyleWindow      = obj.GetComponent <StyleWindow>();
        }