Exemple #1
0
        public static TargetReticle CreateTargetReticlePoolObject(TargetReticlePool objectPool)
        {
            TargetReticle targetReticle = new TargetReticle();

            targetReticle.Construct(objectPool);
            return(targetReticle);
        }
Exemple #2
0
 public void Construct(TargetReticlePool objectPool)
 {
     this.targetIdentifier = objectPool;
     if (string.IsNullOrEmpty(this.name))
     {
         this.name = string.Format("TargetReticle {0}", this.targetIdentifier.Capacity);
     }
 }
Exemple #3
0
 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;
     }
 }