32 lines
943 B
C#
32 lines
943 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using AK.Wwise;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace Ichni
|
|
{
|
|
public class AudioManager : MonoBehaviour
|
|
{
|
|
public SongPlayer songPlayer;
|
|
public AudioContainer generalSoundEffects;
|
|
|
|
public bool isLoading = true;
|
|
public bool isStarting = true;
|
|
public bool isDelaying = false;
|
|
public bool isPlaying = false; // 是否正在播放音乐
|
|
public bool isPausing = false; // 是否正在暂停音乐
|
|
public bool isFinished = false;
|
|
|
|
private void Start()
|
|
{
|
|
InformationTransistor.instance.chapterSwitch.SetValue(gameObject);
|
|
InformationTransistor.instance.songSwitch.SetValue(gameObject);
|
|
isLoading = true;
|
|
isStarting = true;
|
|
}
|
|
|
|
public bool isUpdating => isDelaying || isPlaying;
|
|
}
|
|
} |