コード例 #1
0
    public void UsingWeaponTillBroken()
    {
        int used = pickWeapon.BeingUsed();

        if (used >= holdWeapon.durability)
        {
            DestroyWeapon();
            //return true;
        }
        //else return false;
    }
コード例 #2
0
    public bool UsingWeaponTillBroken()
    {
        int used = pickWeapon.BeingUsed();

        if (used >= Player.weapon.durability)
        {
            DestroyWeapon();
            return(true);
        }
        else
        {
            return(false);
        }
    }