예제 #1
0
        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);
        }
예제 #2
0
 public void OnBuild(Teddy teddy)
 {
     _filter.sharedMesh = teddy.volume.ToMesh();
 }