I tried making a death trigger that would reload the scene when you hit it. To do that you need to use SceneManagement. But I use this:
using UnityEngine.SceneManagement
and it keeps giving the error "A namespace cannot directly contain members such as fields or methods." I've seen this exact code in other scripts so I don't know what the problem is. Please help; I'm new to unity and C# so this is all new to me.
↧