Prototypes 03: Runner 2
The third prototype tutorial is the successor of the by now very old Runner tutorial. It is a Canabalt-like side-scrolling endless runner game with a multi-tiered skyline.
Comments (4)
MissingReferenceException: The object of type 'RandomizedObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. SkylineObject.GetInstance () (at Assets/Scripts/SkylineObject.cs:44) SkylineGenerator.GetInstance () (at Assets/Scripts/SkylineGenerator.cs:101) SkylineGenerator.StartNewGame (TrackingCamera view) (at Assets/Scripts/SkylineGenerator.cs:69) Game.StartNewGame () (at Assets/Scripts/Game.cs:32) Game.Update () (at Assets/Scripts/Game.cs:49)
Since Unity 2022.3.1f1 disabling domain reloading is no longer bugged for URP and I have added support for it to the tutorials. See section 3.3 for the new code that avoids the error you mentioned when domain reloading is disabled.
Awesome - I love what you’re doing here and really appreciate your work. Thank you!
Cheers!
