hi i have a text and i have with transparency with float but idk how to do it
public class Controlador : MonoBehaviour {
public GameObject gameovert;
bool gameover;
public Color color;
public void muerto()
{
gameovert.SetActive(true);
gameover = true;
}
// Use this for initialization
void OnGUI()
{
Color colorSave = GUI.color;
GUI.color = color;
[B] GUI.Label(new Rect(25, 25, 200, 50), gameovert);[/B]
}
// Update is called once per frame
void Update () {
color.a = Mathf.PingPong(Time.time, 1.0f);
}
}
[CODE]
because in the gui label u can use a gameobject only a string :(