Пример #1
0
 public override void OnCollision(Actors other)
 {
     throw new NotImplementedException();
 }
Пример #2
0
 //This method is called whenever a collision happens
 public abstract void OnCollision(Actors other);
Пример #3
0
 public override void OnCollision(Actors other)
 {
 }
Пример #4
0
 //Returns true, if the GameObject is colliding with the other GameObject
 //Uses intersectswith to determine if a collision is taking place
 public bool IsCollidingWith(Actors other)
 {
     return(CollisionBox.IntersectsWith(other.CollisionBox));
 }