Example #1
0
 /// <summary>
 /// When the player painted a polygon, check if this collectable is inside,
 /// collect and destroy it and tell it to the polygonpainter to handle it.
 /// </summary>
 /// <param name="e">E.</param>
 void polygonPainter_PolygonPainted(PolygonPainterEventArgs e)
 {
     if (PolygonMath.IntersectNew(e.Points, e.PointCount, transform.position))
     {
         DestroyMe();
     }
 }