void Awake() { animator = GetComponent <Animator>(); timeUtils = GetComponent <TimeUtils>(); collider = GetComponent <BoxCollider2D>(); audioManager = GetComponentInChildren <SlugAudioManager>(); }
void Start() { flashRed = GetComponent <FlashUsingMaterial>(); animator = GetComponent <Animator>(); audioManager = GetComponent <SlugAudioManager>(); brain = GetComponent <MummyBrain>(); }
void Awake() { anim = GetComponent <Animator>(); timeUtils = GetComponent <TimeUtils>(); flashRed = GetComponent <FlashUsingMaterial>(); audioManager = GetComponentInChildren <SlugAudioManager>(); }
void Awake() { soundManager = GetComponent <SlugAudioManager>(); EventManager.StartListening(GlobalEvents.MissionStart, PlayMainMusic); EventManager.StartListening(GlobalEvents.BossStart, PlayBossMusic); EventManager.StartListening(GlobalEvents.BossDead, PlaySuccess); EventManager.StartListening(GlobalEvents.GameOver, PlayGameOver); }
void Awake() { healthManager = gameObject.AddComponent <HealthManager>(); healthManager.maxHP = maxHP; SlugAudioManager audioManager = gameObject.AddComponent <SlugAudioManager>(); audioManager.InitAudioClips(audioClips); gameObject.AddComponent <TimeUtils>(); gameObject.AddComponent <Blink>(); enemyEvents = GetComponent <EnemyEvents>(); if (enemyEvents == null) { Debug.LogError("missing EnemyGetsDamage"); } }
void Awake() { animManager = GetComponent <SarubiaAnimationManager>(); projectilePool = GetComponent <ObjectPoolScript>(); audioManager = GetComponentInChildren <SlugAudioManager>(); }