public void Process() { #if ENABLE_DEBUG_DIALOG Debug.Log("Processing an update variable node------"); Debug.Log("Previous value: " + RetrievedVariable.Value); #endif RetrievedVariable.SetValueAtRuntime(UpdatedValue); #if ENABLE_DEBUG_DIALOG Debug.Log("New value: " + RetrievedVariable.Value); Debug.Log("----------------------------------------"); #endif }
public void Load() { if (DialogEngineRuntime.IsRuntime) { RetrievedVariable = DialogEngineRuntime.GetCurrentVariablesContainer().FindVariable(VariableName); if (object.Equals(RetrievedVariable, null)) { Debug.LogError("Unable to retrieve the variable \"" + VariableName + "\". Make sure it is in the list " + "of the variables in the DialogEngineRuntime."); return; } RetrievedVariable.Load(true); } }
public void Unload() { RetrievedVariable.Save(true); RetrievedVariable.Unload(); }