New dev here guys,
right now I’m doing some fairly simple stuff. I’m trying to get my start button to self destruct when the user taps the screen. The code I’m using looks something like this:
function Update ()
{
if(Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began == Input.GetMouseButtonDown (0))
{
Destroy(gameObject.name = “startButton”);
}
}
I debug and I get the error:
Error BCE0044: unexpected char: 0x201C. (BCE0044) (Assembly-UnityScript)
any ideas???
much thanks to you all.