Exemplo n.º 1
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;
 }
Exemplo n.º 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);
        }