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