hey, i jsut wanted to repost as i got the menu from the mate, i put in my code, changed a few things so it would start, had a quick search on how to start particle emitters(just so i know the timer works, but none of it seems to be doing anything, is it something wrong with how it checks, or maybe the time itself, or the emitter… please help!
#pragma strict
private var MenuTime : byte;
private var Intro : boolean = false;
private var Mid : boolean = false;
private var Finale : boolean = false;
private var MenuEnd : boolean = false;
function Start () {
}
function Update () {
MenuTime += Time.deltaTime; //Makes the variable MenuStart into real seconds.
if (MenuTime >= 20) { //Checks the time of the Menu
MenuTime = 0; //Resets Menu Time back to 0
MenuEnd = true; //Makes var True
if (MenuTime==5) { //Checks the time
Intro = true;
if (MenuTime==10) {
Mid = true;
if (MenuTime==15) {
Finale = true;
}
}
}
}
}
function IntroAnim () {
Intro = true;
gameObject.particleEmitter.emit = true;
}
function MidAnim () {
Mid = true;
}
function FinaleAnim () {
Finale = true;
}
function MenuEndCheck () {
MenuEnd = true;
Intro = false;
Mid = false;
Finale = false;
MenuEnd = false;
}