Quantcast
Channel: Answers for "Scoring (i'm stuck)"
Viewing all articles
Browse latest Browse all 6

Answer by Gjallanhorn

$
0
0
You're using OnCollisionEnter(), but you have nothing colliding, that's the problem, just increase the score, when you get the touch: function Update(){ for (var touch : Touch in Input.touches) { if (touch.phase == TouchPhase.Began) { var ray = camera.ScreenPointToRay(touch.position); var hit : RaycastHit; if (Physics.Raycast (ray, hit, 400)) {

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images