internal bool TryGetCell(ref Int2 cellIndex, out GridCell2D cell)
 {
     int index;
     int sortingHash;
     if (TryGetIndex(ref cellIndex, out index, out sortingHash))
     {
         cell = cells.Elements[index];
         return true;
     }
     cell = null;
     return false;
 }
Beispiel #2
0
        internal bool TryGetCell(ref Int2 cellIndex, out GridCell2D cell)
        {
            int index;
            int sortingHash;

            if (TryGetIndex(ref cellIndex, out index, out sortingHash))
            {
                cell = cells.Elements[index];
                return(true);
            }
            cell = null;
            return(false);
        }