using System; using UnityEngine; using System.Collections; using System.Collections.Generic; using MiniJSON; public class myNetworkHelper:MonoBehaviour { /*Number of strokes the Helper knows about */ public int numStrokes = 0; /*Total Number of points the Helper knows about */ public int numPoints = 0; /* Upload any points that have been added to this class to the server */ /* If the upload fails because of bad network, it should hold onto the points */ /* After upload numStrokes and numPoints will be zero if the network * connection was succesful */ public void uploadPoints(string group_name,string drawing_name); /* Add a point to a stroke */ public void addPoint(string stroke,long timestamp,double lat, double lng, double alt); /* Assign a color to a stroke */ /* Any strokes without color are made black */ public void addStrokeColor(string stroke, Color color); }