void Start() { if (eventUtilsPrefab) { eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>(); } if (eventForwarder) { UIEventForwarder.OnForwardedEvent += ActivatePlayersEventHandler; } }
void Start() { if (eventUtilsPrefab) { eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>(); } if (eventForwarder) { UIEventForwarder.OnForwardedEvent += StartPanEventHandler; } }
void Start() { if (eventUtilsPrefab) { eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>(); } if (eventForwarder) { UIEventForwarder.OnForwardedEvent += FadeInEventHandler; } animator = GetComponent <Animator>(); }
void Start() { if (eventUtilsPrefab) { eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>(); } if (eventForwarder) { UIEventForwarder.OnForwardedEvent += EndGameEventHandler; } isEnding = false; }
private void Start() { _source = GetComponent <AudioSource>(); currentHealth = 0; if (eventUtilsPrefab) { eventForwarder = eventUtilsPrefab.GetComponent <UIEventForwarder>(); } if (EndGameRef) { EndGameObject = EndGameRef.GetComponent <EndGame>(); } }
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; }