Ejemplo n.º 1
0
 public void setWeapon(int num)
 {
     equipedWeapons[currentWeapon].gameObject.SetActive(false);
     currentWeapon = num;
     equipedWeapons[currentWeapon].transform.SetAsFirstSibling();
     equipedWeapons[currentWeapon].gameObject.SetActive(true);
     setWeapon(equipedWeapons[currentWeapon].wType);
     player.refreshWeapon((int)weaponType);
     attackComboCount = 0;
     SetIdle();
 }