Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power-ups display errors, don't clear during/between runs #12

Closed
Jacekpapapolski opened this issue Jul 16, 2019 · 1 comment
Closed
Assignees

Comments

@Jacekpapapolski
Copy link

Upon collecting a pickup you receive an error. When the pickup runs out you receive an error.
The pickup UI never leaves the screen so as you collect more powerups during your run the bottom left of your screen continously fills up with (now empty) powerup icons

Lastly when you finally die and then start a new run all previous powerup icons will be displayed in the bottom left from the previous run

The errors are:

NullReferenceException: Object reference not set to an instance of an object
Consumable+d__19.MoveNext () (at Assets/Scripts/Consumable/Consumable.cs:69)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

Exception encountered in operation UnityEngine.ResourceManagement.ResourceManager+CompletedOperation`1[UnityEngine.GameObject], result='', status='Failed': Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=8cede34fb26a722408198e0d27628ae9
UnityEngine.AddressableAssets.AssetReference:InstantiateAsync(Transform, Boolean)
d__19:MoveNext() (at Assets/Scripts/Consumable/Consumable.cs:67)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
CharacterInputController:UseConsumable(Consumable) (at Assets/Scripts/Characters/CharacterInputController.cs:425)
CharacterCollider:OnTriggerEnter(Collider) (at Assets/Scripts/Characters/CharacterCollider.cs:181)

@Jacekpapapolski Jacekpapapolski added the bug Something isn't working label Jul 16, 2019
@UnityGuillaume UnityGuillaume added verify fix and removed bug Something isn't working labels Jul 17, 2019
@Jacekpapapolski
Copy link
Author

Fixed in a4c1c1f - Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants