Пример #1
0
    public void SetValues()
    {
        Title.GetComponent <TextMeshProUGUI>().text =
            ProfileManager.GetComponent <ProfileMgr>()._Username;

        Kills.GetComponent <TextMeshProUGUI>().text =
            "Kills: " + ProfileManager.GetComponent <ProfileMgr>()._kills.ToString();

        Deaths.GetComponent <TextMeshProUGUI>().text =
            "Deaths: " + ProfileManager.GetComponent <ProfileMgr>()._deaths.ToString();

        Matches.GetComponent <TextMeshProUGUI>().text =
            "Matches: " + ProfileManager.GetComponent <ProfileMgr>()._matches.ToString();

        Ratio.GetComponent <TextMeshProUGUI>().text =
            "Kill/Death Ratio: " + ProfileManager.GetComponent <ProfileMgr>()._kdleft.ToString() + " / " +
            ProfileManager.GetComponent <ProfileMgr>()._kdright.ToString();

        PrestigeText.GetComponent <TextMeshProUGUI>().text =
            "Prestige Level " + ProfileManager.GetComponent <ProfileMgr>()._level.ToString();

        PrestigeExpBar.GetComponent <Transform>().localScale = new Vector3(ProfileManager.GetComponent <ProfileMgr>()._exp, 1, 1);
    }