コード例 #1
0
        public void DrawOutline()
        {
            Region area = null;

            Country[] mapCountries = new Country[3];
            mapCountries[0] = map.GetCountry("France");
            mapCountries[1] = map.GetCountry("Spain");
            mapCountries[2] = map.GetCountry("Germany");
            foreach (Country cData in mapCountries)
            {
                if (area == null)
                {
                    area = cData.mainRegion;
                }
                else
                {
                    area = map.RegionMerge(area, cData.mainRegion);
                }
            }

            if (outline != null)
            {
                Destroy(outline);
            }

            outline = map.DrawRegionOutline("PlayerRealm", area, borderTexture, 1f, Color.blue);
        }