Example #1
0
    /*private void Start()
     * {
     *  zero = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerZero>();
     *  audioSource = GetComponent<AudioSource>();
     * }*/

    private void OnEnable()
    {
        zero        = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerZero>();
        audioSource = GetComponent <AudioSource>();
        audioSource.Play();
        BgmManager.StopBgm();
        BgmManager.PlayBgm(BgmManager.stage1Bgm);
    }
Example #2
0
 private void OnDisable()
 {
     BgmManager.PlayBgm(BgmManager.bossBgm);
     GameController.instance.canControll = true;
     boss.canMove = true;
     bossHpBar.SetActive(true);
     HumanAileAudioManager.instance.PlayAudio(HumanAileAudioManager.bossBattleStartAudio);
 }