access dictionary from another c# script 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(); }