public static TargetReticle CreateTargetReticlePoolObject(TargetReticlePool objectPool) { TargetReticle targetReticle = new TargetReticle(); targetReticle.Construct(objectPool); return(targetReticle); }
public void Construct(TargetReticlePool objectPool) { this.targetIdentifier = objectPool; if (string.IsNullOrEmpty(this.name)) { this.name = string.Format("TargetReticle {0}", this.targetIdentifier.Capacity); } }
private void CreateView(GameObject asset, TargetReticlePool objectPool) { this.View = asset; this.View.name = this.name; this.Deactivate(); if (this.pendingTarget != null) { this.SetTarget(this.pendingTarget); this.pendingTarget = null; } }