protected override void OnEnable() { base.OnEnable(); _visibility = new VisibilityMap(_map.Width, _map.Height, _map, Allocator.Persistent); }
protected override void OnResized(int2 newSize) { _visibility.Dispose(); _visibility = new VisibilityMap(_map.Width, _map.Height, _map, Allocator.Persistent); }