private void Awake() { ApplyCurrentParent(); button = GetComponent <WorldButton>(); button.SubscribeOnClickHandler(this); button.enabled = pickable; if (state == ItemState.Inventory) { PlayerInventory.Instance.AddItem(this); } }
private void OnEnable() { openButton.SubscribeOnClickHandler(this); }