Exemplo n.º 1
0
    //private string returnedString = string.Empty;

    void Start()
    {
        // Initialize the Dialoguer
        Dialoguer.Initialize();

        // If the Global Variables state already exists, LOAD it into Dialoguer
        if (PlayerPrefs.HasKey(GLOBAL_VARIABLE_SAVE_KEY))
        {
            Dialoguer.SetGlobalVariablesState(PlayerPrefs.GetString(GLOBAL_VARIABLE_SAVE_KEY));
            //returnedString = PlayerPrefs.GetString(GLOBAL_VARIABLE_SAVE_KEY);
        }
    }
    //private string returnedString = string.Empty;

    void Start()
    {
        // Initialize the Dialoguer
        Dialoguer.Initialize();

        // If the Global Variables state already exists, LOAD it into Dialoguer
        if (PlayerPrefs.HasKey(GLOBAL_VARIABLE_SAVE_KEY))
        {
            Dialoguer.SetGlobalVariablesState(PlayerPrefs.GetString(GLOBAL_VARIABLE_SAVE_KEY));
            //returnedString = PlayerPrefs.GetString(GLOBAL_VARIABLE_SAVE_KEY);
        }
        //		This can be saved anywhere, and loaded from anywhere the user wishes
        //		To save the Global Variable State, get it with Dialoguer.GetGlobalVariableState() and save it where you wish
    }