コード例 #1
0
        private void Start()
        {
            SetUp();
            _MessageFeedManager = FindObjectOfType <MessageFeedManager>();

            _AudioSource = GetComponent <AudioSource>();
        }
コード例 #2
0
        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);
        }