void Start() { style = new GUIStyle(); style.normal.textColor = Color.black; style.fontStyle = FontStyle.Bold; style.normal.background = InvestigateAction.MakeTextureOfColor(new Color(0.6f, 0.6f, 0.6f, 0.7f)); }
void Awake() { visibilityStyle = new GUIStyle(); visibilityStyle.normal.textColor = Color.black; visibilityStyle.fontStyle = FontStyle.Bold; visibilityStyle.normal.background = InvestigateAction.MakeTextureOfColor(new Color(0.5f, 0.5f, 0.5f, 0.9f)); visibilityStyle.alignment = TextAnchor.MiddleCenter; }
public virtual void Start() { this.gameObject.GetComponent <SpriteRenderer>().sprite = normal; style = new GUIStyle(); style.fontSize = 16; style.fontStyle = FontStyle.Bold; style.normal.textColor = Color.black; style.normal.background = InvestigateAction.MakeTextureOfColor(new Color(0.5f, 0.5f, 0.5f, 0.8f)); }
protected override void Start() { base.Start(); style = new GUIStyle(); style.normal.textColor = new Color(0.5f, 0, 0); style.fontSize = 14; style.fontStyle = FontStyle.Bold; style.alignment = TextAnchor.LowerCenter; style.normal.background = InvestigateAction.MakeTextureOfColor(new Color(0.5f, 0.5f, 0.5f, 0.7f)); }