Example #1
0
        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);
            }
        }
Example #2
0
 /// <summary>
 /// Clear tilemap and reset eraser and block module pooler.
 /// </summary>
 public override void Reset()
 {
     tilemap.ClearAll();
     eraser.Reset();
     base.Reset();
 }