title: Redirect script of buy button
body: <p>The buy button script don't redirect me to the next scene , what can I do ? What should I add to my code to make this possible</p>
  
  <pre class="lang-c# prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  using UnityEngine.SceneManagement;
  
  public class PurchaseScript : MonoBehaviour
  {
      public void BuyComplete(UnityEngine.Purchasing.Product product) 
      {       
          SceneManager.LoadScene("50");
      }
  
      public void BuyFailed(UnityEngine.Purchasing.Product product, UnityEngine.Purchasing.PurchaseFailureReason fa)
      {
          Debug.Log("PURCHASE FAILED");
      }
  }
  </code></pre>