/// <inheritdoc/>
 public void Attack(INetworkController target)
 {
     if (this.IsEnable)
     {
         if (this.UsedCable < this.CableCapacity && this.Utps.Where(x => x.Target == target).FirstOrDefault() == null)
         {
             this.Utps.Add(new Utp(this, target));
             if (target.Owner == this.Owner)
             {
                 IUtp utp = (target as IActiveNetworkController).Utps.Where(x => x.Target == this).FirstOrDefault();
                 if (utp != null)
                 {
                     utp.Aback();
                 }
             }
         }
     }
 }
Example #2
0
 /// <inheritdoc/>
 public void DisconectUtp(IUtp utp)
 {
     utp.Aback();
 }