void Awake()
{
lines = new List<Line> ();
lineRen = GetComponent<LineRenderer> ();
rend = GetComponent<Renderer> ();
lineRen.SetWidth (lineWidth, lineWidth);
prevPos = Vector3.zero;
prevPrevPos = Vector3.zero;
texture = new Texture2D (1,100,TextureFormat.RGBAFloat,false);
rend.material.SetTexture ("_Detail", texture);
hashGrid = new Dictionary<int, List<Point>> ();
}