Ejemplo n.º 1
0
 public static void RemoveRunnableObject(int id)
 {
     if (iRunnableObjects.isCreated)
     {
         iRunnableObjects.Remove(id);
     }
 }
 private void OnDisable()
 {
     allCamera.Remove(gameObject.GetInstanceID());
     if (allCamera.Length <= 0)
     {
         allCamera.Dispose();
     }
 }
Ejemplo n.º 3
0
 private void OnDisable()
 {
     if (cameraSearchDict.isCreated)
     {
         cameraSearchDict.Remove(gameObject.GetInstanceID());
     }
     frustumArray.Dispose();
 }
Ejemplo n.º 4
0
        private int UnloadChunk(ref int2 startIndex)
        {
            startIndex %= indexSize;
            int2 result;

            if (poolDict.Get(startIndex, out result))
            {
                poolDict.Remove(startIndex);
                pool.Return(result.y);
                return(result.x);
            }
            return(0);
        }