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