Exemple #1
0
    void Start()
    {
        SaveManager = GameObject.Find("SaveData").GetComponent <SaveDataManager>();
        NewGame     = GameObject.Find("New Game").GetComponent <Button>();
        Continue    = GameObject.Find("Continue").GetComponent <Button>();

        if (!SaveManager.HasSavedGame())
        {
            Continue.enabled = false;
            Continue.GetComponentInChildren <TextMeshProUGUI>().color = new Color(0, 0, 0);
        }
    }