private void Awake() { instantButtonAnimator = GetComponent <Animator>(); inputBarFieldLoader = base.gameObject.GetComponent <InputBarFieldLoader>(); InputBarFieldLoader obj = inputBarFieldLoader; obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Combine(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded)); inputBarFieldLoader.LoadInputBarField(); }
private void Awake() { inputBarFieldLoader = GetComponent <InputBarFieldLoader>(); InputBarFieldLoader obj = inputBarFieldLoader; obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Combine(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded)); inputBarFieldLoader.LoadInputBarField(); checkDisplaySearchBar(); CloseButton.SetActive(value: false); Service.Get <EventDispatcher>().AddListener <KeyboardEvents.ReturnKeyPressed>(onReturnKeyPressed); Service.Get <EventDispatcher>().AddListener <FriendsServiceEvents.FriendsListUpdated>(onFriendsListUpdated); Service.Get <EventDispatcher>().AddListener <FriendsScreenEvents.SearchFriend>(onSearchFriend); }