LookForLanding()

Found in:

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;
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *