示例#1
0
 void Start()
 {
     inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>();
     quitCrafting  = GameObject.FindGameObjectWithTag("BackButton").GetComponent <QuitCrafting>();
 }
示例#2
0
 void Start()
 {
     craftItems   = GameObject.FindGameObjectWithTag("Player").GetComponent <CraftingSlots>();
     quitCrafting = GameObject.FindGameObjectWithTag("BackButton").GetComponent <QuitCrafting>();
 }