예제 #1
0
    private void Awake()
    {
        if (instance != null)
        {
            Debug.LogWarning("More than one instance of inventory found!");
            return;
        }
        instance = this;

        movableItemDrag = GameObject.Find("movableItem").GetComponent <MovableItemDrag>();
    }
예제 #2
0
 public void Awake()
 {
     inventoryManager = GameObject.Find("Scene Manager").GetComponent <InventoryManager>();
     movableItemDrag  = GameObject.Find("movableItem").GetComponent <MovableItemDrag>();
 }
예제 #3
0
 void Awake()
 {
     itemSlotScript        = GetComponent <ItemSlot>();
     movableItemDragScript = GameObject.Find("movableItem").GetComponent <MovableItemDrag>();
 }