public void ActiveYellowBar(VarString aText) { RedBar.SetActive(false); YellowBar.SetActive(true); GreenBar.SetActive(false); ConnectionText.text = aText.CurrentValue; }
public void LoadSceneByClick(VarString SceneName) { if (isEnabled) { SceneManager.LoadScene(SceneName.CurrentValue); Debug.Log("Save NextScene Index: " + SceneIndexFromName(SceneName.CurrentValue)); } }
public void ExecuteInstantiateRuntimeRequest(VarString aPrefabname) { if (isEnabled && usingInstantiateSettings) { Vector3 hitPoint = ActivePointer.CurrentPointerPosition3D; hitPoint = hitPoint + ActiveOffset; GameObject temp = (GameObject)Instantiate(Resources.Load(aPrefabname.CurrentValue), hitPoint, Quaternion.identity); } }
public void LoadSceneByClickAndLoading(VarString SceneName) { if (isEnabled) { SaveLoadingName(SceneName.CurrentValue); int SceneIndex = SceneIndexFromName(SceneName.CurrentValue); //PlayerPrefs.SetInt(LoadingController.NextSceneIndex, SceneIndex); Debug.Log("Save NextScene Index: " + SceneIndex.ToString()); LevelController.LoadScene(SceneIndex); } }
public void CreateSession(VarString aValue) { SessionName.CurrentValue = aValue.CurrentValue; if (isSessionExists(SessionName.CurrentValue)) { PlayerPrefs.SetString("CurrentSession", SessionName.CurrentValue); LoadSessionName(SessionName.CurrentValue); LoadSession(); } else { SaveSessionName(SessionName.CurrentValue); SaveSession(); } }
public void ExecuteInstantiateRuntimeRequest(VarString aPrefabname) { if (isEnabled && usingInstantiateSettings) { string AssetBundle_PrefabName = aPrefabname.CurrentValue; if (AssetBundleController.Contains(AssetBundle_PrefabName)) { var activeprefab = AssetBundleController.LoadAsset(AssetBundle_PrefabName); Vector3 hitPoint = ActivePointer.CurrentPointerPosition3D; hitPoint = hitPoint + ActiveOffset; GameObject temp = (GameObject)Instantiate(activeprefab, hitPoint, Quaternion.identity); } } }
public void LoadSessionName(VarString aValue) { SessionName.CurrentValue = aValue.CurrentValue; }
public void SetText(VarString aValue) { TargetInputField.text = aValue.CurrentValue; }
public void SetCurrentValue(VarString aValue) { CurrentValue = aValue.CurrentValue; }
public void LoadSession(VarString aSessionKey) { LoadSession(aSessionKey.CurrentValue); }
public void SaveSession(VarString aSessionName) { SaveSession(aSessionName.CurrentValue); }
public void SetSessionValue(VarString aValue) { SessionValue.CurrentValue = aValue.CurrentValue; }
public void SetCurrentTaskUserAnswer(VarString aValue) { CurrentIndex = CurrentLevel - 1; LevelSession[CurrentIndex].TaskSession[CurrentTask].UserAnswer = aValue.CurrentValue; }
public void SaveSessionName(VarString aValue) { SessionName.CurrentValue = aValue.CurrentValue; PlayerPrefs.SetString("CurrentSession", SessionName.CurrentValue); }