示例#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));
 }