Warining by Application.loadedlevel

using UnityEngine;
using UnityEditor;
using UnityEngine.SceneManagement;
using System.Collections;

public class LevelLoad : MonoBehaviour 
{
	public string levelName;

	public void OnMouseDown() {
//			Application.LoadLevel (levelName);  old use Scenemanager.LoadScene("") 
			SceneManager.LoadScene (levelName);
	}

	public void OnTriggerEnter (Collider other) {

		if (other.tag == "Player") {
			int next = Application.loadedLevel;
			SceneManager.LoadScene (next +001);
//			Application.LoadLevel (levelName);
		}
	}
}

line 18 gives out a warning… i tried

UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex);

but this don’t work…

can anyone help to convert Application.loadedLevel; to the new method with SceneManager ??

void OnTriggerEnter (Collider other) {
if (other.tag == “Player”) {
//if the index of the current scene is float number like 001 or 002 use float variable
float next = SceneManager.GetActiveScene ().buildIndex;
SceneManager.LoadScene (next +001);
}