- Home /
Help Basketball Shooting Game
I made a game for Mac standalone and works perfectly. Now I am converting it to iOS and have 2 main issues.
1st for (var touch : iPhoneTouch in iPhoneInput.touches) { if (touch.phase == iPhoneTouchPhase.Began) and iPhoneTouchPhase.Ended for shooting. Now there are 3 players so I want the screen to be divided into 3 touch zones. How to do that?
2ndly I am getting this strange error. On function Start () I use ball1 = Instantiate (tempBasketBall, pos[0].position, pos[0].rotation); ball1.transform.parent = b1Parent;
But later to recreate the ball I use function MakeBall1(pos) { yield new WaitForSeconds(1); ball1 = Instantiate (tempBasketBall, pos[0].position, pos[0].rotation); ball1.transform.parent = b1Parent; canControl1 = true; } and it goes like slicing is not supported by type object
Its var pos : Transform [ ]; just btw
Please help :)
Your answer
Follow this Question
Related Questions
Unity iPhone Build gaining 20MB in Xcode 3 Answers
getting udp package info inside unity (GlovePIE) 0 Answers
Moving Things Like Amnesia 1 Answer
Create a flashlight 2 Answers
Parallax scrolling 1 Answer