Example #1
0
 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));
     }
 }
Example #3
0
        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);
     }
 }
Example #5
0
 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;
 }
Example #8
0
 public void SetText(VarString aValue)
 {
     TargetInputField.text = aValue.CurrentValue;
 }
 public void SetCurrentValue(VarString aValue)
 {
     CurrentValue = aValue.CurrentValue;
 }
Example #10
0
 public void LoadSession(VarString aSessionKey)
 {
     LoadSession(aSessionKey.CurrentValue);
 }
Example #11
0
 public void SaveSession(VarString aSessionName)
 {
     SaveSession(aSessionName.CurrentValue);
 }
Example #12
0
 public void SetSessionValue(VarString aValue)
 {
     SessionValue.CurrentValue = aValue.CurrentValue;
 }
Example #13
0
 public void SetCurrentTaskUserAnswer(VarString aValue)
 {
     CurrentIndex = CurrentLevel - 1;
     LevelSession[CurrentIndex].TaskSession[CurrentTask].UserAnswer = aValue.CurrentValue;
 }
Example #14
0
 public void SaveSessionName(VarString aValue)
 {
     SessionName.CurrentValue = aValue.CurrentValue;
     PlayerPrefs.SetString("CurrentSession", SessionName.CurrentValue);
 }