Пример #1
0
        public bool OverlapsPipe(SpriteGameObject other)
        {
            SpriteGameObject upperPipe = Children[0] as SpriteGameObject,
                             lowerPipe = Children[1] as SpriteGameObject;

            return(upperPipe.Overlaps(other) || lowerPipe.Overlaps(other));
        }
Пример #2
0
 public bool OverlapsWithFor(SpriteGameObject other)
 {
     for (int i = 0; i < spriteGOs.Length; i++)
     {
         return(other.Overlaps(spriteGOs[i]));
     }
     return(false);
 }
Пример #3
0
 public bool OverlapsWith(SpriteGameObject other)
 {
     return(other.Overlaps(spriteGOs[0]) || other.Overlaps(spriteGOs[1]));
 }