private void MakeInstance()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
Example #2
0
 void toTitle()
 {
     UnityAdsScript.ShowAd();
     SceneManager.LoadScene("Title");
 }
Example #3
0
 public void BackTitle()
 {
     UnityAdsScript.ShowAd();
     SceneManager.LoadScene("Title");
 }