Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Parsing error and unexpected symbol `}' (25,41)

$
0
0
 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) } } } } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>