RushabhG
0
Q:

how to access the dictionary from another script in unity

 if (Input.GetButtonDown("Reload"))         {             remainingClips = GameObject.FindGameObjectWithTag("InventoryController").GetComponent<InventoryClass>().playerAmmo[weaponType];             if (remainingClips > 0)             {                 Reload();             }
0

New to Communities?

Join the community