Exemplo n.º 1
0
 public void CreateAsteroid()
 {
     asteroid = ProcAsteroid.Clone(this.transform.position);
     asteroid.GetComponent <MeshRenderer>().sharedMaterial = material;
 }
Exemplo n.º 2
0
 public void CreateAsteroid()
 {
     asteroid = ProcAsteroid.Clone(new Vector3(transform.position.x + Random.Range(1f, 3f), transform.position.y + Random.Range(1f, 3f), transform.position.z + Random.Range(1f, 3f)));
     asteroid.GetComponent <MeshRenderer>().sharedMaterial = material;
 }