public static void DrawPath(string jsonString) { var origin = ApiManager.Instance.BrushPosition; var path = JsonConvert.DeserializeObject <List <List <float> > >($"[{jsonString}]"); DrawStrokes.SinglePathToStroke(path, origin); }
public static void DrawStroke(string jsonString) { var strokeData = JsonConvert.DeserializeObject <List <List <float> > >($"[{jsonString}]"); DrawStrokes.SinglePathToStroke(strokeData, Vector3.zero, rawStroke: true); }