Пример #1
0
        public override void ApplyGameObjectParam(GameObject go, JsonData data)
        {
            base.ApplyGameObjectParam(go, data);


            KProgressBar bar = go.AddComponent <KProgressBar>();

            bar.AddChildComponent <StateImage>("Image_bar");     //因为不会统一加了, 所以这里要单独加

            //if (HasParam(data, PATTERN_RIGHT2LEFT) == true)
            //{
            //    AddBuildHelper(go, PARAM_RIGHT2LEFT);
            //}
        }
Пример #2
0
        protected override void AddComponent(GameObject go)
        {
            KProgressBar bar = go.AddComponent <KProgressBar>();

            bar.AddChildComponent <StateImage>("Image_bar");     //因为不会统一加了, 所以这里要单独加
        }