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