Esempio n. 1
0
 public void SetType(Weapon.WeaponType wt)
 {
     Weapon.WeaponDefinition def = Main.GetWeaponDefinition(wt);
     cubeRend.material.color = def.color;
     letter.text             = def.letter;
     type = wt;
 }
Esempio n. 2
0
 public void SetType(Weapon.WeaponType eType)
 {
     _type = eType;
     Weapon.WeaponDefinition def = Main.GetWeaponDefinition(_type);
     rend.material.color = def.projectileColor;
 }