public GameObject Inventory;
public bool isOpenInv;
private void Update()
{
if (Input.GetKeyDown(KeyCode.O))
{
isOpenInv = !isOpenInv;
Inventory.SetActive(isOpenInv);
}
}
待更
最近有點忙背包功能還沒做完之後做完更新
參考資料: