// Update is called once per frame
    void Update()
    {
        VariableStorage varStore = Test.GetComponent <VariableStorage>();

        testString = varStore.GetValue("$varToGet").AsString;
        Debug.Log(testString);
    }
Beispiel #2
0
    public void ChangeBackground()
    {
        VariableStorage varStore = FindObjectOfType <DialogueRunner>().GetComponent <VariableStorage>();

        if (GameManager.instance.completedCave && varStore.GetValue("$isFirstCave").AsBool)
        {
            anim.Play("Start");
            varStore.SetValue("$isFirstCave", false);
        }
    }
Beispiel #3
0
 // Update is called once per frame
 void Update()
 {
     cash.text = cashAmount.GetValue("$cash").AsString;
 }