示例#1
0
        private void Start()
        {
            ButtonEvents     = GetComponentInParent <ButtonEvents>();
            CommunicationBus = GetComponentInParent <PlayerToManagerCommunicationBus>();

            subscribeToEvents();
        }
示例#2
0
        private void Start()
        {
            ButtonEvents     = GetComponentInParent <ButtonEvents>();
            CommunicationBus = GetComponentInParent <PlayerToManagerCommunicationBus>();

            Events.OnScored += HandleScored;
            Events.OnDeath  += HandleDeath;
        }
示例#3
0
        private void Start()
        {
            ButtonEvents     = GetComponentInParent <ButtonEvents>();
            CommunicationBus = GetComponentInParent <PlayerToManagerCommunicationBus>();

            DroneEvents.OnScored            += HandleScored;
            DroneEvents.OnDroneDeath        += HandleDroneDeath;
            DroneEvents.OnCountdownFinished += HandleCountdownFinished;
        }