// Update is called once per frame void Update() { VariableStorage varStore = Test.GetComponent <VariableStorage>(); testString = varStore.GetValue("$varToGet").AsString; Debug.Log(testString); }
public void ChangeBackground() { VariableStorage varStore = FindObjectOfType <DialogueRunner>().GetComponent <VariableStorage>(); if (GameManager.instance.completedCave && varStore.GetValue("$isFirstCave").AsBool) { anim.Play("Start"); varStore.SetValue("$isFirstCave", false); } }
// Update is called once per frame void Update() { cash.text = cashAmount.GetValue("$cash").AsString; }