Exemplo n.º 1
0
        public void Recycle()
        {
            var bld = builder;

            Pool <RetainedGizmos.Builder> .Recycle(ref bld);

            builder   = null;
            debugData = null;
        }
Exemplo n.º 2
0
 public void Init(NavSystem active, RetainedGizmos.Hasher hasher, RetainedGizmos gizmos)
 {
     if (active != null)
     {
         debugData      = active.debugHandler;
         debugPathID    = active.debugPathID;
         debugFloor     = active.debugFloor;
         debugRoof      = active.debugRoof;
         showSearchTree = active.showSearchTree && debugData != null;
     }
     this.gizmos = gizmos;
     this.hasher = hasher;
     builder     = Pool <RetainedGizmos.Builder> .Allocate();
 }