示例#1
0
        /// <summary>
        /// Locates coastal points for a sample country and add custom sprites over that line
        /// </summary>
        void FindCoast()
        {
            int            franceIndex = map.GetCountryIndex("France");
            List <Vector2> points      = map.GetCountryCoastalPoints(franceIndex);

            points.ForEach((point) => AddRandomSpriteAtPosition(point));
            if (points.Count > 0)
            {
                map.FlyToLocation(points[0], 2, 0.2f);
            }
        }