public override void OnCollision(Actors other) { throw new NotImplementedException(); }
//This method is called whenever a collision happens public abstract void OnCollision(Actors other);
public override void OnCollision(Actors other) { }
//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)); }