Exemplo n.º 1
0
        private MapRegionComponent CreateRegion(MapRegionModel region)
        {
            var r = Helper.Create <MapRegionComponent>(_mapRegionComponentPrefab.gameObject, _anchorForMapRegions);

            r.Setup(region, _mapSetting);

            return(r);
        }
Exemplo n.º 2
0
        public void Setup(MapRegionModel mapRegion, MapSettingScriptableObject setting)
        {
            _mapRegion  = mapRegion;
            _mapSetting = setting;

            SetImage();

            SwitchDayOrNight(DaySwitcher.Instance.IsDay);
        }