- Home /
How do play prefab animation countdown numbers in my scene properly
I have countdown numbers for my project . The thing is that numbers are in prefabs . I get the numbers in the scene to play the problems is I don't know how to play all five numbers in my scene. I want am trying to do is pause everything in the scene except for the animation numbers prefab in my scene. Basically what I am trying to do is have the prefab numbers countdown in the scene and when the numbers are done counting down the player is able to play in the game after the numbers stop down . I want to do a 5 second countdown . I also have music in my scene . I also have an sample of the project. If you want just ask.
using UnityEngine;
using System.Collections;
public class s : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
if (Time.timeScale == 1)
{
Time.timeScale = 0;
else
{
Time.timeScale = 1;
}
}
}
}
I have some of the code.
Your answer
Follow this Question
Related Questions
How do I keep the scene pause until the prefab animations are done counting down in the scene 0 Answers
How to transfer back to original scene and animation 1 Answer
Animator is not playing a Playable 2 Answers
If I make changes to a prefab in the Project tab, do I have to save the scene, too? 1 Answer