/// <summary> /// Check collision with inputted rectangle collider and updates the CollidedThisFrame bool /// </summary> /// <param name="rectangleCollider">The rectangle collider to check against</param> /// <returns>Returns true if a collision occurred</returns> protected abstract bool CheckCollisionWith(RectangleCollider rectangleCollider);
protected override bool CheckCollisionWith(RectangleCollider rectangleCollider) { throw new NotImplementedException(); }
protected override bool CheckCollisionWith(RectangleCollider rectangleCollider) { return(rectangleCollider.Bounds.Intersects(bounds)); }