Beispiel #1
0
        protected override void Start()
        {
            base.Start();

            if (!profilesManager)
            {
                profilesManager = FindObjectOfType <ProfilesManager>();
            }

            profilesManager.OnPropertyUpdatedEvent += ProfilesManager_OnPropertyUpdatedEvent;
            profilesManager.OnProfileLoadedEvent.AddListener(ProfilesManager_OnProfileLoadedEvent);

            displayNameInputField = ChildComponent <TMP_InputField>("displayNameInputField");
            avatarUrlInputField   = ChildComponent <TMP_InputField>("avatarUrlInputField");
        }
Beispiel #2
0
        protected override void Start()
        {
            base.Start();

            if (!profilesManager)
            {
                profilesManager = FindObjectOfType <ProfilesManager>();
            }

            profilesManager.OnPropertyUpdatedEvent += ProfilesManager_OnPropertyUpdatedEvent;

            avatarImage           = ChildComponent <Image>("avatarImage");
            displayNameUIProperty = ChildComponent <UIProperty>("displayNameUIProperty");

            bronzeUIProperty = ChildComponent <UIProperty>("bronzeUIProperty");
            silverUIProperty = ChildComponent <UIProperty>("silverUIProperty");
            goldUIProperty   = ChildComponent <UIProperty>("goldUIProperty");
        }