コード例 #1
0
ファイル: RippleMesh.cs プロジェクト: julenka/UnitySandbox
 // Use this for initialization
 void Start()
 {
     GetComponent <MeshFilter>().mesh = mesh = new Mesh();
     mesh.name = "Ripple Mesh";
     grid      = GetComponent <RippleGrid>();
     CreateVertices();
     CreateTriangles();
 }
コード例 #2
0
 public void Awake()
 {
     Instance = this;
     Generate();
 }