public void Init(PathOverlapModel model, Vector2Int tilepos, Texture2D texture) { this.model = model; this.tilepos = tilepos; this.texture = texture; if (model != null) { patterns = this.model.GetPatternsForWave(this.tilepos); } }
// Call this when the maps are loaded public void InstantiateModel() { if (model == null) { model = new PathOverlapModel(); } // Prepare variables for thread mapController.ResetOutput(); model.Init(mapController.inputTarget.sprite.texture, mapController.outputTarget.sprite.texture, N, ModelAttributes); InitModel(true); }
public void Init(PathOverlapModel model) { this.model = model; this.outsize = model.GetOutputRect(); this.isPath = model.IsPath(); }