Exemplo n.º 1
0
    void Awake()
    {
        this.buttons     = GameObject.FindGameObjectsWithTag("InputButton");
        this.eventSystem = eventSystemGameObject.GetComponent <EventSystem>();

        if (!PlayerPrefs.HasKey(this.defaultInputSave))
        {
            InputLoader.PlayerPrefsDelete(this.standardInputSave);
            InputLoader.PlayerPrefsSave(this.defaultInputSave);
        }
        else
        {
            InputLoader.PlayerPrefsLoad(this.standardInputSave);
        }
    }
Exemplo n.º 2
0
    void EndScan(GameObject button)
    {
        Button buttonScript = button.GetComponent <Button>();

        buttonScript.interactable = true;
        eventSystem.SetSelectedGameObject(button);

        ButtonParam buttonParam = button.GetComponent <ButtonParam>();

        buttonParam.UpdateButton();

        TextManager.UpdateAllText();

        this.eventSystemGameObject.SetActive(true);
        InputLoader.PlayerPrefsSave(this.standardInputSave);
    }