public TiledMapDataModifier() { Brush = new DefaultBrush(); Brush.OnPaint -= UpdateGridsData; Brush.OnPaint += UpdateGridsData; }
public void CleanUp() { GameObject.DestroyImmediate(mRootGo); Data.CleanUp(); Data = null; Brush.OnPaint += UpdateGridsData; Brush = null; }