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