Advertisement
dronkowitz

InventorySlot.cs

Nov 4th, 2022 (edited)
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class InventorySlot : MonoBehaviour
  6. {
  7.     public Image itemImage;
  8.     public delegate void SlotClicked(InventorySlot slot);
  9.     public SlotClicked slotClicked;
  10.     public void Clicked()
  11.     {
  12.         slotClicked.Invoke(this);
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement