/// <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); } }
public void onSoomlaSyncInitialized() { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onSoomlaSyncInitialized"); HighwayEvents.OnSoomlaSyncInitialized(); }
public void onStateSyncStarted() { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onStateSyncStarted"); HighwayEvents.OnStateSyncStarted(); }
public void onGiftsRetrieveStarted() { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGiftsRetrieveStarted"); HighwayEvents.OnGiftsRetrieveStarted(); }