Пример #1
0
        public static void DrawPath(string jsonString)
        {
            var origin = ApiManager.Instance.BrushPosition;
            var path   = JsonConvert.DeserializeObject <List <List <float> > >($"[{jsonString}]");

            DrawStrokes.SinglePathToStroke(path, origin);
        }
Пример #2
0
        public static void DrawStroke(string jsonString)
        {
            var strokeData = JsonConvert.DeserializeObject <List <List <float> > >($"[{jsonString}]");

            DrawStrokes.SinglePathToStroke(strokeData, Vector3.zero, rawStroke: true);
        }