コード例 #1
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]);
     }
 }
コード例 #2
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]);
     }
 }
コード例 #3
0
ファイル: WeaponManager.cs プロジェクト: vihwan/UnityPractice
 private void WeaponChange(string _type, string _name)
 {
     if (_type == "GUN")
     {
         theGunController.GunChange(gunDictionary[_name]);
         Debug.Log("총으로 체인지");
     }
     else if (_type == "HAND")
     {
         theHandController.CloseWeaponChange(handDictionary[_name]);
         Debug.Log("손으로 체인지");
     }
     else if (_type == "AXE")
     {
         theAxeController.CloseWeaponChange(axeDictionary[_name]);
         Debug.Log("도끼로 체인지");
     }
     else if (_type == "PICKAXE")
     {
         thePickaxeController.CloseWeaponChange(pickaxeDictionary[_name]);
         Debug.Log("곡갱이로 체인지");
     }
 }