I am trying to make it so that when you collide with an object it increases the amount of throwable objects when i press Fire1. After adding a model over the placeholder for the throwable object, my code suddenly stopped working (not allowing the amount of throwable objects to increase) due to the invalid GC handle error.
“Resolve of invalid GC handle. The handle is from a previous domain. The resolve operation is skipped.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)”
9903939–1430844–shootingScript.cs (1.49 KB)