Beispiel #1
0
 private void HandleTargetInOut(List <Bio> targetsEnter, List <Bio> targetsExit)
 {
     if (targetsEnter != null)
     {
         int c1 = targetsEnter.Count;
         for (int i = 0; i < c1; i++)
         {
             Bio target = targetsEnter[i];
             this.OnTargetEnter(target);
             LLogger.Info("enter");
             target.AddRef();
         }
     }
     if (targetsExit != null)
     {
         int count = targetsExit.Count;
         for (int i = 0; i < count; i++)
         {
             Bio target = targetsExit[i];
             LLogger.Info("exit");
             this.OnTargetExit(target);
             target.RedRef();
         }
     }
 }