public override void ExtraOpertion(I_PoolObjectAbility ability) { PoolDefaultRectTransform po = ability as PoolDefaultRectTransform; if (po == null) { LogManager.Error("对象池工场Push的内容为空或者类型不对"); return; } po.SetParent(_factoryGoRoot.transform); }
public override I_PoolObjectAbility Create() { // 加载 GameObject go = ResManager.instance.LoadPrefab(FactoryName); PoolDefaultRectTransform po = go.GetComponent<PoolDefaultRectTransform>(); if (po == null) { po = go.AddComponent<PoolDefaultRectTransform>(); LogManager.Error("这种形式的创建,会导致最后Pop的时候会有困难[{0}]", _factoryName); } po.SetName(_factoryName); po.SetParent(_factoryGoRoot.transform); return po; }