public override void ElementDestructor(IDataPool_Element element) { GameObjectPool_Element o = element as GameObjectPool_Element; GameObject.Destroy(o.gameObject); base.ElementDestructor(element); }
public override IDataPool_Element ElementConstructor() { base.ElementConstructor(); GameObjectPool_Element sample = GameObject.Instantiate(fObjectPrototype, fPrototypeParent); return(sample); }