예제 #1
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += ActivatePlayersEventHandler;
        }
    }
예제 #2
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

        if (eventForwarder)
        {
            UIEventForwarder.OnForwardedEvent += StartPanEventHandler;
        }
    }
예제 #3
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

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

        animator = GetComponent <Animator>();
    }
예제 #4
0
    void Start()
    {
        if (eventUtilsPrefab)
        {
            eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>();
        }

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

        isEnding = false;
    }
예제 #5
0
    private void Start()
    {
        _source = GetComponent <AudioSource>();

        currentHealth = 0;

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

        if (EndGameRef)
        {
            EndGameObject = EndGameRef.GetComponent <EndGame>();
        }
    }
예제 #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;
    }