protected void Init(IExampleContext context, MapIngredientConfig mapIngredientConfig, WorldGeneratorConfig worldGeneratorConfig) { GameContext = context; Config = mapIngredientConfig; Config.OnUpdate += () => { #if UNITY_EDITOR EditorCoroutines.StartCoroutine(CleanUpAndStartRecalculating(), this); #endif RefreshVisualisation(); }; }
public new void Init(IExampleContext context, MapIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig) { Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); base.Init(context, config, worldGeneratorConfig); }