Пример #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            _visibility = new VisibilityMap(_map.Width, _map.Height, _map, Allocator.Persistent);
        }
Пример #2
0
 protected override void OnResized(int2 newSize)
 {
     _visibility.Dispose();
     _visibility = new VisibilityMap(_map.Width, _map.Height, _map, Allocator.Persistent);
 }