Hi there. First of all, here is my code:
var target : GameObject;
var ObjectText : GUIText;
var infoText : String;
var magicText : String;
var level : int;
var isMagic : boolean;
function OnMouseEnter () {
if (isMagic == true) {
ObjectText.text = "Monster: " + infoText + " (Level " + level + ") " + "(" + magicText + ")";
} else {
ObjectText.text = "Monster: " + infoText + " (Level " + level + ")";
}
}
I need a way to make so I am able to change the color of the “magicText” text only. How could I do this?