コード例 #1
0
        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
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public void Unload()
 {
     RetrievedVariable.Save(true);
     RetrievedVariable.Unload();
 }