コード例 #1
0
    private void CommunicateWithShop()
    {
        // first aid kit availability
        refShopInfo.SetAvailability(!hasFirstAidKit, "First Aid Kit");

        // roc's feather availability
        if (refPlayerMovement.extraJumps >= refPlayerMovement.extraJumpsMax)
        {
            refShopInfo.SetAvailability(false, "Roc's Feather");
        }
        else
        {
            refShopInfo.SetAvailability(true, "Roc's Feather");
        }
    }