public override void Update() { base.Update(); // If the tiles need to update then clear them and reload the grid using auto tiling. if (needsUpdate) { needsUpdate = false; Tilemap.ClearAll(); Tilemap.LoadGridAutoTile(GridCollider); } }
/// <summary> /// Clear tilemap and reset eraser and block module pooler. /// </summary> public override void Reset() { tilemap.ClearAll(); eraser.Reset(); base.Reset(); }