Exemplo n.º 1
0
        /** Downloads variables from the Global Manager to the scene. */
        public void TransferFromManager()
        {
            if (AdvGame.GetReferences() && AdvGame.GetReferences().variablesManager)
            {
                VariablesManager variablesManager = AdvGame.GetReferences().variablesManager;

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