예제 #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;
        }
예제 #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);
        }