public virtual void OnGUI(LocalTargetInfo target) { Texture2D icon = (!target.IsValid) ? TexCommand.CannotShoot : ((!(UIIcon != BaseContent.BadTex)) ? TexCommand.Attack : UIIcon); GenUI.DrawMouseAttachment(icon); }