var liveTime : float = 2.0;
var delayTime : float = 2.0;
var starDelay : float = 0.0;
var box : GameObject;
var IsActive : boolean = true;
function Start () {
yield WaitForSeconds(starDelay);
if(IsActive){
Live();
}else{
Delay();
}
}
function Update () {
}
function Live(){
var k = 0;
while (k < 10){
yield WaitForSeconds(liveTime);
box.SetActive(false);
yield WaitForSeconds(delayTime);
box.SetActive(true);
}
//Delay();
}
function Delay(){
yield WaitForSeconds(delayTime);
box.SetActive(true);
Live();
}
var delayTime : float = 2.0;
var starDelay : float = 0.0;
var box : GameObject;
var IsActive : boolean = true;
function Start () {
yield WaitForSeconds(starDelay);
if(IsActive){
Live();
}else{
Delay();
}
}
function Update () {
}
function Live(){
var k = 0;
while (k < 10){
yield WaitForSeconds(liveTime);
box.SetActive(false);
yield WaitForSeconds(delayTime);
box.SetActive(true);
}
//Delay();
}
function Delay(){
yield WaitForSeconds(delayTime);
box.SetActive(true);
Live();
}