private void Start() { SetUp(); _MessageFeedManager = FindObjectOfType <MessageFeedManager>(); _AudioSource = GetComponent <AudioSource>(); }
public void SetUpEvent() { var managers = GameObject.FindGameObjectWithTag(Tags.MANAGERS_TAG); var eventManager = managers.GetComponentInChildren <EventManager>(); m_mainGameManager = managers.GetComponentInChildren <MainGameManager>(); _MessageFeedManager = managers.GetComponentInChildren <MessageFeedManager>(); eventManager.SetUp(); eventManager.AddSubscriber(GetEventID(), this); }