im making a small Game for Gamedesign class where you have to navigate a sphere through a labyrinth kind of level as fast as you can. So obviously the scene has a timer in it to show you your personal best time for each level.
My problem is i would like to have another timer right at the beginning of the scene
(in the middle of the screen (maybe annimated numbers))
which pause the game and counts from 3 to 0 and then unpause the game so that you can start your jurney through the lab.
I guess the Countdown timer im looking for is similar to a Racing Game type of timer which are shown before the race starts.
thanks for you answer,
but to be honest im a noob in Unity, i dont realy know how to use that script.
I attached it to my player sprite and to my Main_Camera but neither works. It dont stopts the game when the scene is loaded.
This is how i controll my Charakter if it helps
#pragma strict
public var moveSpeed = 2.0;
function Update () {
if (Input.GetMouseButton(0)) {
var targetPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
targetPos.z = transform.position.z;
transform.position = Vector3.MoveTowards(transform.position, targetPos, moveSpeed * Time.deltaTime);
}
}
Declare a text in your script and say public Text CountDown; and then assign your int count to this string. For example;
CountDown.text = count.ToString();
Create a UI text in your Unity and drag and drop it to CountDown text.