Bu kodu yazdığım zaman Assets\Scripts\Player.cs(4,19): error CS0234: The type or namespace name 'SceneManager' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) bu hatayı alıyorum.
C#:
using UnityEngine.SceneManager;
if (health <= 0)
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
Bu kodu yazdığım zaman Assets\Scripts\Player.cs(4,19): error CS0234: The type or namespace name 'SceneManager' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) bu hatayı alıyorum.
C#:
using UnityEngine.SceneManager;
if (health <= 0)
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}