Пример #1
0
    private void Start()
    {
        if (BgmSlider != null)
        {
            BgmSlider.value = SoundManager.Instance.backgroundAudio.volume;
        }
        if (EfxSlider != null)
        {
            EfxSlider.value = SoundManager.Instance.effectAudio.volume;
        }

        if (UserNameText != null)
        {
            BaseUserInfoData baseUserInfoData = GameObject.FindObjectOfType <BaseUserInfoData>();
            UserNameText.text = baseUserInfoData.UserName;
        }
    }
Пример #2
0
    private void Start()
    {
        BaseUserInfoData baseUserInfoData = GameObject.FindObjectOfType <BaseUserInfoData>();

        SetDisText(baseUserInfoData.UserScore.ToString() + "m");
    }