private void WeaponChange(string _type, string _name) { if (_type == "GUN") { theGunController.GunChange(gunDictionary[_name]); } else if (_type == "HAND") { theHandController.CloseWeaponChange(handDictionary[_name]); } else if (_type == "AXE") { theAxeController.CloseWeaponChange(axeDictionary[_name]); } else if (_type == "PICKAXE") { theAxeController.CloseWeaponChange(pickaxeDictionary[_name]); } }
private void WeaponChange(string type, string name) { if (type == "HAND") { theHandController.CloseWeaponChange(handDictionary[name]); } else if (type == "AXE") { theAxeController.CloseWeaponChange(axeDictionary[name]); } else if (type == "PICKAXE") { thePickaxeController.CloseWeaponChange(pickaxeDictionary[name]); } }