public void OnClick() { if (parentHackingPanel.IsAddingWire) { if (hackNode.IsInput) { parentHackingPanel.FinishAddingWire(this); } } else { if (hackNode.IsOutput) { parentHackingPanel.BeginAddingWire(this); } } }
public void OnClick() { Pickupable handItem = PlayerManager.LocalPlayerScript.Equipment.ItemStorage.GetActiveHandSlot().Item; if (handItem == null || !Validations.HasItemTrait(handItem.gameObject, CommonTraits.Instance.Cable)) { return; } if (parentHackingPanel.IsAddingWire) { if (hackNode.IsInput) { parentHackingPanel.FinishAddingWire(this); } } else if (hackNode.IsOutput) { parentHackingPanel.BeginAddingWire(this); } }