using UnityEngine;
using System.Collections;
public class Visiblity : MonoBehaviour
{
public GUIText Text;
void OnTriggerStay2D (Collider2D other)
{
if (other.gameObject.tag == "Player")
{
Text.material.SetColor( Color.black);
}
}
}
How do I use the SetColor argument(I think it’s an argument) to change the color? I get this error:
error CS1501: No overload for method SetColor' takes 1’ arguments
Thanks in advance.