Exemplo n.º 1
0
        public bool IsOn(UIGameObject uiGameObject)
        {
            foreach (var segment in this.body)
            {
                if (segment.X == uiGameObject.X && segment.Y == uiGameObject.Y)
                {
                    return true;
                }
            }

            return false;
        }
Exemplo n.º 2
0
        public bool IsOn(UIGameObject uiGameObject)
        {
            foreach (var segment in this.body)
            {
                if (segment.X == uiGameObject.X && segment.Y == uiGameObject.Y)
                {
                    return(true);
                }
            }

            return(false);
        }