Пример #1
0
        protected void Init(IExampleContext context, MapIngredientConfig mapIngredientConfig, WorldGeneratorConfig worldGeneratorConfig)
        {
            GameContext = context;
            Config      = mapIngredientConfig;

            Config.OnUpdate += () =>
            {
#if UNITY_EDITOR
                EditorCoroutines.StartCoroutine(CleanUpAndStartRecalculating(), this);
#endif
                RefreshVisualisation();
            };
        }
Пример #2
0
        public new void Init(IExampleContext context, MapIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig)
        {
            Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize);

            base.Init(context, config, worldGeneratorConfig);
        }