public bool LookForLanding()
{
leafPlatformDetectBox = Physics2D.OverlapBox(new Vector3(transform.position.x + (platformWidthOffset * transform.localScale.x), transform.position.y + platformHeightOffset), platformSize, 0, heroLayer);
if (leafPlatformDetectBox & hasLandingItem)
{
Debug.Log("Found Hero");
hasLandingItem = false;
return true;
}
return false;
}

Leave a Reply