Rundown of my problem:-
public void drop() {
//creates a bobber
bobber =(GameObject) Instantiate(bobberPrefab, new Vector3(-0.999f, 0.168f, 0), new Quaternion(0f, 0f, 0f, 0f));
}
public void restart()
{
Destroy(bobber.gameObject);
}
So what you need to know is that method “drop” gets called, prefab does it’s thing, then calls method “restart” and supposedly gets destroyed
Now here is the problem, The prefab isn’t getting destroyed at all, it just sits there, I know that the method does get called because it used to give me errors for destroying the asset, does anyone see what’s wrong? thanks.
(also I have set all references)