123456789101112131415161718192021222324252627 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using CommonLang;
- using CommonLang.Concurrent;
- using CommonUnity3D.MFUnity.LoadUtil;
- namespace CommonAIClient.Unity.Utils
- {
- public abstract class Audio { }
- public abstract class SoundAdapter
- {
- public abstract void PlayBGM(string name);
- public abstract void PlaySound(string name, Vector3 pos, float distance = 20f);
- public abstract void PlaySound(string name, int timeMS, Vector3 pos, float distance = 20f);
- public abstract Audio PlaySoundLoop(string name, Vector3 pos, float distance = 20f);
- public abstract void PlaySound(string name, GameObject obj, float distance = 20f);
- public abstract void PlaySound(string name, int timeMS, GameObject obj, float distance = 20f);
- public abstract Audio PlaySoundLoop(string name, GameObject obj, float distance = 20f);
- public abstract void StopSoundLoop(Audio sound);
- public abstract void Clear();
- }
- }
|