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