private Color bitmapToColor(BitmapInfo info) { if (info.type == BitmapType.Inode) { return(Color.red); } else { return(Color.green); } }
public void init(BitmapInfo info, Color newColor, string logoText = "") { this.info = info; theImage.color = newColor; if (logoText == "") { theText.text = info.id.ToString(); } else { theText.text = logoText; } transform.localScale = Vector3.one; scaleText(); }