Ejemplo n.º 1
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(1))//right click
     {
         inventoryManager.openContainer(new ContainerChestInventory(inventory, inventory, 3, 4), 2);
     }
 }
Ejemplo n.º 2
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))//left click
     {
         //Debug.Log("click");
         inventoryManager.openContainer(new ContainerChestInventory(inventory, inventory, 3, 4), 2);
     }
 }