Forum begins after the advertisement:


[Part 10] Can’t add new weapon but can level up old weapon

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 10] Can’t add new weapon but can level up old weapon

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12645
    Former Patron

    I can level up old weapon normally but can’t add new weapon.

    When i click on new weapon its not find Object in AddWeapon function at this line

    weaponLevels[slotIndex] = weapon.weapondata.Levels
    #12653
    Terence
    Keymaster

    Hi Le, do you mean that the new weapon appears in your upgrade panel when you level up, but when you click on it nothing happens?

    Can you take a screenshot of your Console and show me the errors there?

    #12662
    Former Patron

    Yes, but I’ve fixed it. Thank you

    #12669
    Terence
    Keymaster

    What was the issue with it?

    #12673
    Former Patron

    I don’t know exactly what the error is but when I placed weaponScriptableObject on top in Script Execution Order it worked properly

    #12675
    #12679
    Terence
    Keymaster

    Thanks for the clarification Lê.

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

Go to Login Page →


Advertisement below: