Пример #1
0
 public Sign GetSignAtTile(int x, int y)
 {
     return(Signs.FirstOrDefault(c => (c.X == x || c.X == x - 1) && (c.Y == y || c.Y == y - 1)));
 }
Пример #2
0
        public Sign GetSignAtTile(int x, int y)
        {
            Vector2Int32 anchor = GetAnchor(x, y);

            return(Signs.FirstOrDefault(c => (c.X == anchor.X) && (c.Y == anchor.Y)));
        }
Пример #3
0
        public Sign GetSignAtTile(int x, int y, bool findOrigin = false)
        {
            Vector2Int32 anchor = findOrigin ? GetAnchor(x, y) : new Vector2Int32(x, y);

            return(Signs.FirstOrDefault(c => (c.X == anchor.X) && (c.Y == anchor.Y)));
        }
Пример #4
0
 public Sign GetSignAtTile(int x, int y, bool findOrigin = false)
 {
     return(Signs.FirstOrDefault(c => (c.X == x) && (c.Y == y)));
 }