bool CheckGridCell(GridPos pos, GridPos origin)
 {
     if (grid.ContainsKey(pos))
     {
         GridCell c = grid [pos];
         if (c.gridPos == origin)
         {
             return(true);
         }
         else
         {
             bool ret = c.CanShootThrough();
             return(ret);
         }
     }
     else
     {
         return(false);
     }
 }
 //Check tile content.
 private static bool CheckGridCell(GridPos pos, GridPos origin)
 {
     if (cells.ContainsKey(pos))
     {
         GridCell c = cells [pos];
         if (c.gridPos == origin)
         {
             return(true);
         }
         else
         {
             bool ret = c.CanShootThrough();
             //Debug.Log (c.name + " -> " + GridManager.gridGridCells [origin] + ": " + ret);
             return(ret);
         }
     }
     else
     {
         return(false);
     }
 }