Forum begins after the advertisement:


[Part 28] SaveManager Instance not being set

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 28] SaveManager Instance not being set

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #19539
    Calum
    Level 10
    Silver Supporter (Patron)
    Helpful?
    Up
    0
    ::

    After testing at the end of section 3e, returned an error on the following line of code in the UIPowerSelector script:

    purchasedLevel = SaveManager.Instance.GetLevel(powerUp);

    Using debug I was able to rule out the error being in the ‘powerUp’ variable, instead SaveManager.Instance was still null.

    Further debugging in the SaveManager’s Awake() function shows me that the script isn’t being loaded at all.

    Unsure if I’ve missed something in the blog post, in the Bench user guide, or if there’s an object which SaveManager should be a component of in the scene.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: