how to access dictionary values from differnt scripts in unity code example
Example: 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(); }