示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        initialsInputField = GameObject.Find("InitialsInputField").transform;
        initialsInputField.gameObject.SetActive(false);

        scoreChecked = false;

        playerData      = PlayerDataSaver.LoadPlayerData();
        mostRecentScore = playerData.recentScore;
    }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        // Load Player Data
        playerData = PlayerDataSaver.LoadPlayerData();

        // Populate Fields
        firstPlaceText.GetComponent <Text>().text  = playerData.firstPlaceScore.ToString();
        secondPlaceText.GetComponent <Text>().text = playerData.secondPlaceScore.ToString();
        thirdPlaceText.GetComponent <Text>().text  = playerData.thirdPlaceScore.ToString();

        firstPlaceInitials.GetComponent <Text>().text  = playerData.firstPlaceInitials.ToUpper();
        secondPlaceInitials.GetComponent <Text>().text = playerData.secondPlaceInitials.ToUpper();
        thirdPlaceInitials.GetComponent <Text>().text  = playerData.thirdPlaceInitials.ToUpper();
    }