Exemplo n.º 1
0
 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]);
     }
 }
Exemplo n.º 2
0
 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]);
     }
 }