I have some empty object, just a model. How can I make it be invisible for some random time (15-30 sec.), then appear and dissapear repeatedly, then dissapear again for 15-30 sec?
http://docs.unity3d.com/Documentation/ScriptReference/index.Coroutines_26_Yield.html
these links should get u started. as for writing the script for you, i dont think nobody will rise to the occasion to just write scripts for someone not trying to learn it themselves, there are other threads for does.
give it a try if , post what u got, if u on the wrong path , we will be more than happy to write u the code and show u the proper path
Hope this Helps…
public GameObject m_playerRendererRef;
IEnumerator DoIT()
{
//Visible initially
m_playerRendererRef.enabled = false; //Making invisible
yield return new WaitForSeconds(2.0f); //for 2 secs
m_playerRendererRef.enabled = true; //Making visible
yield return new WaitForSeconds(1.0f); //for 1 secs
m_playerRendererRef.enabled = false; //Making invisible again
yield return new WaitForSeconds(1.5f); //for 1.5 secs
}