protected override void Start()
        {
            base.Start();

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

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

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

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

            profilesManager.OnPropertyUpdatedEvent += ProfilesManager_OnPropertyUpdatedEvent;

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

            levelUIProperty = ChildComponent <UIProperty>("levelUIProperty");
            xpUIProperty    = ChildComponent <UIProperty>("xpUIProperty");
            goldUIProperty  = ChildComponent <UIProperty>("goldUIProperty");
        }