示例#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);
			}
		}
        public void onGrowDLCInitialized()
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGrowDLCInitialized");

            HighwayEvents.OnGrowDLCInitialized();
        }
 public void onGiftsRetrieveStarted()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGiftsRetrieveStarted");
     HighwayEvents.OnGiftsRetrieveStarted();
 }
 public void onStateResetStarted()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onStateResetStarted");
     HighwayEvents.OnStateResetStarted();
 }