【Unity3D】使用IPointerDownHandler和IPointerUpHandler简易实现背包小案例
BagPanel管理着全部格子,格子管理具体物品,SlotItem是具体物品。代码:usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;//////背包容器///publicclassBagPanel:MonoBehaviour,BagInterface{publicGameObjectslotItemP