how to load new scenes ingame unity

Code Example - how to load new scenes ingame unity

                
                        void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
         SceneManager.LoadScene (2);
 }