public void DrawWeapon(WeaponData weaponData)
 {
     weaponName.text = weaponData.WeaponName;
     weaponIcon.sprite = weaponTypeDatabase.GetSpriteIcon(weaponData.GetWeaponType());
     weaponLayout.color = weaponTypeDatabase.GetColorType(weaponData.GetWeaponType());
 }
Exemple #2
0
 public void SetMainColor(WeaponData weapon)
 {
     Color color = weaponData.GetColorType(weapon.GetWeaponType());
     for (int i = 0; i < imageColors.Length; i++)
         imageColors[i].color = color;
 }