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

            r.Setup(region, _mapSetting);

            return(r);
        }
Beispiel #2
0
        public void Setup(MapRegionModel mapRegion, MapSettingScriptableObject setting)
        {
            _mapRegion  = mapRegion;
            _mapSetting = setting;

            SetImage();

            SwitchDayOrNight(DaySwitcher.Instance.IsDay);
        }