// Update is called once per frame void Start() { isInit = false; isInInventory = false; inventoryR = GameObject.FindGameObjectWithTag("Inventory").GetComponent <InvetoryR>(); database = GameObject.FindGameObjectWithTag("Inventory").GetComponent <ItemDatabase>(); interactions = gameObject.GetComponent <Interactions>(); }
// Use this for in itialization void Start() { gold = Random.Range(5 * enemyLevel, 20 * enemyLevel); itemId = 2; inventory = GameObject.FindGameObjectWithTag("Inventory").GetComponent <InvetoryR>(); isLootGenerated = false; random = Random.Range(1, 10); //Debug.Log(random); }
void Start() { inv = GameObject.Find("InventoryData").GetComponent <InvetoryR>(); toolTip = inv.GetComponent <ToolTip>(); controller = Camera.main.GetComponent <CameraController>(); if (controller) { controller.isDragged = false; } }
// Use this for initialization void Start() { inv = GameObject.Find("InventoryData").GetComponent <InvetoryR>(); }