- Home /
Calling methods
im newbie on unity. sorry for this question. but i need help..
im trying to call different methods in one function. i want to make this. counter has 10 seconds, -=. 9,8,7,6,5,4 on the 3 code will take a texture to the screen. and 2 same. and 1 same. 3-2-1.
static var countDown : int = 10; var imga : Texture2D; var imgb : Texture2D; var imgc : Texture2D;
function Start () { InvokeRepeating("CountDown", 0, 1); }
function countDown () { if (--countDown == 3) { GUI.Label (Rect (10, 10, 100, 20), imga); //Debug.Log("im workin"); CancelInvoke ("CountDown"); } }
Your answer
Follow this Question
Related Questions
Timer doesn't work properly 2 Answers
When Score goes up by 25 change timer value 1 Answer
Countdown Through a Label? 1 Answer
Countdown to start level 1 Answer
Making a countdown out of 3D planes. 1 Answer