Ejemplo n.º 1
0
		/// <summary>
		/// Initializes game state before the game starts.
		/// </summary>
		void Awake(){
			if(instance == null){ 	// making sure we only initialize one instance.
				instance = this;
				GameObject.DontDestroyOnLoad(this.gameObject);
				Initialize();
			} else {				// Destroying unused instances.
				GameObject.Destroy(this.gameObject);
			}
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes game state before the game starts.
 /// </summary>
 void Awake()
 {
     if (instance == null)               // making sure we only initialize one instance.
     {
         instance = this;
         GameObject.DontDestroyOnLoad(this.gameObject);
         Initialize();
     }
     else                                                // Destroying unused instances.
     {
         GameObject.Destroy(this.gameObject);
     }
 }
Ejemplo n.º 3
0
        public void onVungleAdViewed(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onVungleAdViewed:" + message);

            JSONObject eventJSON   = new JSONObject(message);
            bool       completed   = eventJSON["completed"].b;
            double     timeWatched = eventJSON["timeWatched"].n;

            if (completed && savedReward != null)
            {
                savedReward.Give();
                savedReward = null;
            }

            SoomlaVungle.OnVungleAdViewed(completed, timeWatched);
        }
Ejemplo n.º 4
0
        public void onVungleHasAds(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onVungleHasAds:" + message);

            SoomlaVungle.OnVungleHasAds();
        }
Ejemplo n.º 5
0
        public void onVungleAdStart(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onVungleAdStart:" + message);

            SoomlaVungle.OnVungleAdStart();
        }