void Build(List <Vector2> contour) { var sw = System.Diagnostics.Stopwatch.StartNew(); var teddy = new Teddy(contour); sw.Stop(); Debug.Log(string.Format("elapsed: {0}(ms)", sw.ElapsedMilliseconds)); onBuild.Invoke(teddy); }
public void OnBuild(Teddy teddy) { _filter.sharedMesh = teddy.volume.ToMesh(); }