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); //} }
protected override void AddComponent(GameObject go) { KProgressBar bar = go.AddComponent <KProgressBar>(); bar.AddChildComponent <StateImage>("Image_bar"); //因为不会统一加了, 所以这里要单独加 }