Application.LoadLevel or SceneManager.LoadScene to reload not working

I tried to use both Application.LoadLevel and SceneManager.LoadScene to reset my game, but both don’t work. Here’s my code:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class PlayerController : MonoBehaviour {
	
	public float speed;
	private Rigidbody rb;
	private int count;
	public Text CountText;
	public Text WinText;

	
	void Start ()
	{
		rb = GetComponent<Rigidbody>();
		count = 0;
		SetCountText();
		WinText.text = "";
	}
	
	void FixedUpdate ()
	{
		float moveHorizontal = Input.GetAxis ("Horizontal");
		float moveVertical = Input.GetAxis ("Vertical");
		
		Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
		
		rb.AddForce (movement * speed);
	}

	void OnTriggerEnter (Collider other)
	{
		if (other.gameObject.CompareTag ("Pick Up"));
		{
			other.gameObject.SetActive (false);
			count += 1;
			SetCountText();
		}
	}
	void SetCountText ()
	{
		CountText.text = "Count: " + count.ToString ();
		if (count >= 12)
		{
			WinText.text = "You Win!";
			if (Input.GetKeyDown(KeyCode.R))
			{
				Application.LoadLevel(0);
			}
		}
	}
}

link text
//fiest you need SceneManagerはUnityEngine.SceneManagement名前空間!

using UnityEngine.SceneManagement;

then

Unity 5.2 → 5.3

Application.LoadLevel(“Uduki”) → SceneManager.LoadScene(“Uduki”)

I just ran into this same issue. Fixed it by adding:

using UnityEngine.SceneManagement;

Add using UnityEngine.SceneManagement;

then

SceneManager.LoadScene (SceneManager.GetActiveScene ().name);

That’s it :stuck_out_tongue:

@AdamDionne, @Dimobov How to use Application.loadedLevel ?