Exemple #1
0
 public static OnShopCanvas Instance()
 {
     if (!onShopCanvas)
     {
         onShopCanvas = FindObjectOfType(typeof(OnShopCanvas)) as OnShopCanvas;
         if (!onShopCanvas)
         {
             Debug.LogError("There needs to be one active OnShopCanvas script on a GameObject in your scene.");
         }
     }
     return(onShopCanvas);
 }
Exemple #2
0
    private void Awake()
    {
        // Instance = this;

        GameControl.control.Load();

#if UNITY_ANDROID
        restoreRemoveAdsButton.gameObject.SetActive(false);
#endif

        levelManager = LevelManager.Instance();
        onShopCanvas = OnShopCanvas.Instance();
    }