コード例 #1
0
 void Awake()
 {
     animator     = GetComponent <Animator>();
     timeUtils    = GetComponent <TimeUtils>();
     collider     = GetComponent <BoxCollider2D>();
     audioManager = GetComponentInChildren <SlugAudioManager>();
 }
コード例 #2
0
ファイル: MummyEvents.cs プロジェクト: rickho886/Mission169
 void Start()
 {
     flashRed     = GetComponent <FlashUsingMaterial>();
     animator     = GetComponent <Animator>();
     audioManager = GetComponent <SlugAudioManager>();
     brain        = GetComponent <MummyBrain>();
 }
コード例 #3
0
 void Awake()
 {
     anim         = GetComponent <Animator>();
     timeUtils    = GetComponent <TimeUtils>();
     flashRed     = GetComponent <FlashUsingMaterial>();
     audioManager = GetComponentInChildren <SlugAudioManager>();
 }
コード例 #4
0
 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);
 }
コード例 #5
0
ファイル: EnemyBuilder.cs プロジェクト: rickho886/Mission169
        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");
            }
        }
コード例 #6
0
 void Awake()
 {
     animManager    = GetComponent <SarubiaAnimationManager>();
     projectilePool = GetComponent <ObjectPoolScript>();
     audioManager   = GetComponentInChildren <SlugAudioManager>();
 }