Exemplo n.º 1
0
        private void Start()
        {
            ButtonEvents     = GetComponentInParent <ButtonEvents>();
            CommunicationBus = GetComponentInParent <PlayerToManagerCommunicationBus>();

            subscribeToEvents();
        }
Exemplo n.º 2
0
        private void Start()
        {
            ButtonEvents     = GetComponentInParent <ButtonEvents>();
            CommunicationBus = GetComponentInParent <PlayerToManagerCommunicationBus>();

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

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