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"); }
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"); }