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