예제 #1
0
    public void NewRoof()
    {
        if (Handicap <= 4)
        {
            Handicap++;
            HandicapBranches();
        }

        else
        {
            if (AxePowerup == true)
            {
                AxePowerupBranches();
            }

            else
            {
                if (Random.value <= 0.5)
                {
                    RightSideRoof();
                }
                else
                {
                    LeftSideRoof();
                }
            }
        }
        jump.FindAllRooves();
    }