Exemplo n.º 1
0
		/// <summary>
		/// Initializes the game state before the game starts.
		/// </summary>
		void Awake(){
			if(instance == null){ 	// making sure we only initialize one instance.
				SoomlaUtils.LogDebug(TAG, "Initializing HighwayEvents (Awake)");
				instance = this;
				GameObject.DontDestroyOnLoad(this.gameObject);
				Initialize();
			} else {				// Destroying unused instances.
				GameObject.Destroy(this.gameObject);
			}
		}
Exemplo n.º 2
0
 public void onSoomlaSyncInitialized()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onSoomlaSyncInitialized");
     HighwayEvents.OnSoomlaSyncInitialized();
 }
Exemplo n.º 3
0
 public void onStateSyncStarted()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onStateSyncStarted");
     HighwayEvents.OnStateSyncStarted();
 }
Exemplo n.º 4
0
 public void onGiftsRetrieveStarted()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGiftsRetrieveStarted");
     HighwayEvents.OnGiftsRetrieveStarted();
 }