Forum begins after the advertisement:


[Part 10] Next Level Weapon can’t appear

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 10] Next Level Weapon can’t appear

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12201

    so, i have some trouble in leveling up a weapon or passive weapon. if i use a

    if(choosenWeaponUpgrade.weaponData.NextLevelPrefab)
    {
        DisableUpgradeUI(upgradeOption);
        break;
    }
    

    my weapon and passive item can’t upgrade to next level, can anyone help me? or someone have a same trouble with me? thanks

    #12215
    Terence
    Keymaster

    Hi Septian, do you see any errors on your Console when the upgrade fails?

    #12295

    wait, i check again

    #12296

    no, it not have error appear in console

    #12297
    Terence
    Keymaster

    Hi Septian, can you make a recording of the error happening and post it here? Make sure to capture the Console window in your recording as well.

    Here’s a guide on how to do this: https://blog.terresquall.com/community/topic/how-to-post-images-on-this-forum/

    #12311

    View post on imgur.com

    View post on imgur.com

    int the second try, i’m not use the if code statement in my first post, and the upgrade is run normally, but can’t remove the UpgradeUI

    #12322
    Terence
    Keymaster

    Hi Septian, you missed a ! in your code:

    if(!choosenWeaponUpgrade.weaponData.NextLevelPrefab)
    {
        DisableUpgradeUI(upgradeOption);
        break;
    }
    #12379

    ohh i see, sorry for the my inaccuracy 😅🙏

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: