/// <summary> /// Whether or not player should start dropping through the platform. /// </summary> /// <returns>True if the player should be allowed to drop through the platform. False otherwise.</returns> private bool PlayerShouldDropThrough() { if (!playerIsTouching || !player.PressedDown() || player.TryingToMove()) { return(false); } if (!player.FitsDown(out Collider2D[] hits)) { foreach (var hit in hits) { if (hit != platformCollider) { return(false); } } } return(true); }