Exemplo n.º 1
0
 /**
  * <summary>Transfers the values of all option-linked global variables from the options data into the variables.
  */
 public void AssignOptionsLinkedVariabes()
 {
     if (AdvGame.GetReferences() && AdvGame.GetReferences().variablesManager)
     {
         if (Options.optionsData != null && Options.optionsData.linkedVariables != "")
         {
             SaveSystem.AssignVariables(Options.optionsData.linkedVariables, true);
         }
     }
 }
Exemplo n.º 2
0
 /**
  * <summary>Transfers the values of all option-linked global variables from the options data into the variables.
  */
 public void AssignOptionsLinkedVariables()
 {
     if (AdvGame.GetReferences() && AdvGame.GetReferences().variablesManager)
     {
         if (Options.optionsData != null && !string.IsNullOrEmpty(Options.optionsData.linkedVariables))
         {
             SaveSystem.AssignVariables(Options.optionsData.linkedVariables, true);
         }
     }
 }
Exemplo n.º 3
0
        private void UpdateSelf()
        {
            if (AdvGame.GetReferences() && AdvGame.GetReferences().variablesManager)
            {
                VariablesManager variablesManager = AdvGame.GetReferences().variablesManager;

                globalVars.Clear();
                foreach (GVar assetVar in variablesManager.vars)
                {
                    globalVars.Add(new GVar(assetVar));
                }

                // Options Variables
                if (GetComponent <Options>() && GetComponent <Options>().optionsData != null && GetComponent <Options>().optionsData.linkedVariables != "")
                {
                    SaveSystem.AssignVariables(GetComponent <Options>().optionsData.linkedVariables, true);
                }
            }
        }