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); }
public virtual void Set(BaseTowerSlot slot) { this.Slot = slot; }