Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     GetComponent <MeshFilter>().mesh = mesh = new Mesh();
     mesh.name = "Ripple Mesh";
     grid      = GetComponent <RippleGrid>();
     CreateVertices();
     CreateTriangles();
 }
Esempio n. 2
0
 public void Awake()
 {
     Instance = this;
     Generate();
 }