- Home /
Parsing error and unexpected symbol `}' (25,41)
using UnityEngine; using System.Collections;
public class TouchLogic : MonoBehaviour
{
void Update ()
{
//is there a touch on screen?
if(Input.touches.Length <= o)
{
//if no touches then execute this code
}
else //if there is a touch
{
//loop through all the touches on screen
for(int i = o; i < Input.touchCount; i++)
{
//execute this code for current touch (i) on screen
if(this.guiTexture.HitTest(Input.GetTouch(i).position))
{
//if current touch hits our guitexture, run this code
if(Inpu.GetTouch(i).phase == TouchPhase.Began)
{
Debug.Log("The Touch has begun on " + this.name)
}
//if current touch hits our guitexture, run this code
if(Inpu.GetTouch(i).phase == TouchPhase.Ended)
{
Debug.Log("The Touch has ended on " + this.name)
}
}
}
}
}
}
Comment
Best Answer
Answer by yoger · Jan 20, 2014 at 08:27 PM
First, you missed semicolons ";" after Debug.Log's. Second, you misspelled Input "if(Inpu.GetTouch(i).phase".
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How do I fix this really wierd parsing error? 0 Answers
Getting errors on my chart script 1 Answer
Parsing Error: 1 Answer
help my code has error CS8205 :parsing error how can I fix? 2 Answers