public void Construct(ShipInfo shipDetails, AttachmentHolderComponent attachments, Transform shipTr, GameplayEventStatBuffDetails statBuffEvent) { _shipInfo = shipDetails; _attachments = attachments; _shipTr = shipTr; _statBuffEvent = statBuffEvent; }
public void OnSelection(GameObject target) { _attachmentHolderComponent = target.GetComponent <AttachmentHolderComponent>(); if (_attachmentHolderComponent != null) { UpdateCooldowns(); UpdateSprites(); } }
private bool TryAddFriendly(GameObject target) { AttachmentHolderComponent targetAttachmentHolder = target.GetComponent <AttachmentHolderComponent>(); if (targetAttachmentHolder != null) { _friendlyTargets.Add(targetAttachmentHolder); //_targetAddedEvent.TriggerEvent(GetInstanceID(), target); return(true); } return(false); }
public void OnSelection(GameObject target) { _currentShipAttachmentHolder = target.GetComponent <AttachmentHolderComponent>(); }