public void StartSimulation(string sceneName) { string user_id_raw = GameManager.instance.playerName + GameManager.instance.playerClass + GameManager.instance.playerSchoolName; // Creating a hashed user id, md5 hash of a string and then using a guid string hashed_user_id = GoedleUtils.userHash(user_id_raw); goedle_sdk.GoedleAnalytics.instance.setUserId(hashed_user_id); sceneLoader.LoadScene(sceneName); }
public void StartSimulation(string sceneToLoad) { goedle_sdk.GoedleAnalytics.instance.requestStrategy(); string user_id_raw = GameManager.instance.playerName + GameManager.instance.playerClass + GameManager.instance.playerSchoolName; // Creating a hashed user id, md5 hash of a string and then using a guid string hashed_user_id = GoedleUtils.userHash(user_id_raw); goedle_sdk.GoedleAnalytics.instance.setUserId(hashed_user_id); StartCoroutine(getStrategy(sceneToLoad)); }
public void StartSimulation(string sceneName) { //Debug.Log(UnityEditor.SceneManagement.EditorSceneManager.GetActiveScene().buildIndex); string user_id_raw = GameManager.instance.playerName + GameManager.instance.playerClass + GameManager.instance.playerSchoolName; // Creating a hashed user id, md5 hash of a string and then using a guid string hashed_user_id = GoedleUtils.userHash(user_id_raw); goedle_sdk.GoedleAnalytics.instance.setUserId(hashed_user_id); sceneLoader.LoadScene(sceneName); }