Ejemplo n.º 1
0
 void OnSlotDeployed(BaseTowerSlot slot)
 {
     if (slot.Index < list.Length - 1 && Proponent is PlayerProponent)
     {
         list[slot.Index + 1].Handle.SetActive(true);
     }
 }
 protected virtual void OnTargetChange(BaseTowerSlot slot)
 {
     if (IsApplicaple(slot))
     {
         Show();
     }
     else
     {
         Hide();
     }
 }
 protected abstract bool IsApplicaple(BaseTowerSlot slot);
        public virtual void Show(BaseTowerSlot context)
        {
            this.Target = context;

            Show();
        }
 protected override bool IsApplicaple(BaseTowerSlot slot)
 {
     return(slot.isDeployed && slot.Turret.isDeployed);
 }
Ejemplo n.º 6
0
 public virtual void Set(BaseTowerSlot slot)
 {
     this.Slot = slot;
 }