// Use this for initialization void Start() { copiaCarro = carro; datos = new MarkovGenerate.MarkovNameGenerator(new List <string> { "300", "110", "240", "310", "100", "240", "290", "140", "320" }, 1, 1); time = int.Parse(datos.NextTime); }
// Update is called once per frame void Update() { if (i == time) { time=int.Parse(datos.NextTime); this.copiaCarro = Instantiate (carro.transform, origen.position, origen.rotation) as GameObject; i=0; } if (i > 360) { datos = new MarkovGenerate.MarkovNameGenerator (new List<string> { "300", "110","240","310","100","240","290","140","320"},1,1); time=int.Parse(datos.NextTime); i=0; } i++; }
// Update is called once per frame void Update() { if (i == time) { time = int.Parse(datos.NextTime); this.copiaCarro = Instantiate(carro.transform, origen.position, origen.rotation) as GameObject; i = 0; } if (i > 360) { datos = new MarkovGenerate.MarkovNameGenerator(new List <string> { "300", "110", "240", "310", "100", "240", "290", "140", "320" }, 1, 1); time = int.Parse(datos.NextTime); i = 0; } i++; }
// Use this for initialization void Start() { copiaCarro = carro; datos = new MarkovGenerate.MarkovNameGenerator (new List<string> { "300", "110","240","310","100","240","290","140","320"},1,1); time=int.Parse(datos.NextTime); }