Hi, firs of all sory about my english. The thing is that i wanna make an object to be active/unactive in a variable (between 2 times). If i use a single interval it works perfect, but if i set up it with random range it only appear at the maximum amount of time.
var interval : float = 1.0f; //////not using this for the moment
var min : float = 1.0f;//////not using this for the moment
var max : float = 2.0f;//////not using this for the moment
function Start()
{
InvokeRepeating ("Toogle", (Random.Range(1.0f, 1.0f)), (Random.Range(5.0f, 10.0f)));
}
function Toggle()
{
gameObject.active = !gameObject.active;
}