public void Load() { if (DialogEngineRuntime.IsRuntime) { RetrievedVariable = DialogEngineRuntime.GetCurrentVariablesContainer().FindVariable(VariableName); RetrievedVariable.Load(true); } }
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); } }