private void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of inventory found!"); return; } instance = this; movableItemDrag = GameObject.Find("movableItem").GetComponent <MovableItemDrag>(); }
public void Awake() { inventoryManager = GameObject.Find("Scene Manager").GetComponent <InventoryManager>(); movableItemDrag = GameObject.Find("movableItem").GetComponent <MovableItemDrag>(); }
void Awake() { itemSlotScript = GetComponent <ItemSlot>(); movableItemDragScript = GameObject.Find("movableItem").GetComponent <MovableItemDrag>(); }