Ejemplo n.º 1
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += ActivatePlayersEventHandler;
        }
    }
Ejemplo n.º 2
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += StartPanEventHandler;
        }
    }
Ejemplo n.º 3
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += FadeInEventHandler;
        }

        animator = GetComponent <Animator>();
    }
Ejemplo n.º 4
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += EndGameEventHandler;
        }

        isEnding = false;
    }
Ejemplo n.º 5
0
    private void Start()
    {
        _source = GetComponent <AudioSource>();

        currentHealth = 0;

        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (EndGameRef)
        {
            EndGameObject = EndGameRef.GetComponent <EndGame>();
        }
    }
Ejemplo n.º 6
0
    private void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            eventForwarder.EnqueueEvent(new UIAudioEventArgs(typeof(UIAudioManager), this.GetType(), AUDIO_EVENT_TYPE.FADE_IN_AUDIO, null));
            eventForwarder.EnqueueEvent(new UIAudioEventArgs(typeof(UIAudioManager), this.GetType(), AUDIO_EVENT_TYPE.PLAY_AUDIO, startMenuMusic));
        }

        animator = GetComponent <Animator>();

        startPressed = false;
    }