コード例 #1
0
    // Start is called before the first frame update

    public void Start()
    {
        npcInventory = transform.GetComponent <SimpleInventoryList>();
    }
コード例 #2
0
 public void Start()
 {
     targetName         = GameObject.Find("TargetName").GetComponent <Text>();
     inventoryUI        = GameObject.Find("Inventory").GetComponent <InventoryUIConnection>();
     questItemInventory = GameObject.Find("Inventory").GetComponent <SimpleInventoryList>();
 }