示例#1
0
 void UnlockWeapon(int weaponID)
 {
     // ONly run if the weapon isnt already unlocked, and the weapons inventory contains the id
     if (!UnlockedWeaponIDs.Contains(weaponID) && WeaponsInventory.ContainsKey(weaponID))
     {
         UnlockedWeaponIDs.Add(weaponID);
         weaponPanel.updatePanels(UnlockedWeaponIDs);
         // Show panel to indicate there is a new weapon
         StartShowPanelCoroutine();
     }
 }