public bool OverlapsPipe(SpriteGameObject other) { SpriteGameObject upperPipe = Children[0] as SpriteGameObject, lowerPipe = Children[1] as SpriteGameObject; return(upperPipe.Overlaps(other) || lowerPipe.Overlaps(other)); }
public bool OverlapsWithFor(SpriteGameObject other) { for (int i = 0; i < spriteGOs.Length; i++) { return(other.Overlaps(spriteGOs[i])); } return(false); }
public bool OverlapsWith(SpriteGameObject other) { return(other.Overlaps(spriteGOs[0]) || other.Overlaps(spriteGOs[1])); }