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
    Participant
    Helpful?
    Up
    0
    ::

    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
    Helpful?
    Up
    0
    ::

    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
    Participant
    Helpful?
    Up
    0
    ::

    Yes, but I’ve fixed it. Thank you

    #12669
    Terence
    Keymaster
    Helpful?
    Up
    0
    ::

    What was the issue with it?

    #12673
    Participant
    Helpful?
    Up
    0
    ::

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

    #12675
    Participant
    #12679
    Terence
    Keymaster
    Helpful?
    Up
    0
    ::

    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: