示例#1
0
        public void Recycle()
        {
            var bld = builder;

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

            builder   = null;
            debugData = null;
        }
示例#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();
 }