Battle Talent  V11
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CrossLink.BgmPlayer Class Reference

all bgmplayers will register into a stack, the bgmplayer on top of stack can reponse for the battle music when bgmplayer disabled, it'll leave the stack More...

Inherits MonoBehaviour.

Public Types

enum class  BGMType { Normal , Elite , Boss , End }
 

Public Member Functions

void Activate (bool a)
 
void Init ()
 
void Clear ()
 
void StartFightAndForgetSpawnStart ()
 
void StartFight ()
 
void StopFight ()
 
void ClearAmb ()
 

Static Public Member Functions

static BgmPlayer GetBgmPlayer ()
 

Public Attributes

AudioSource bgm
 
string fightLoopFinish
 
string[] fightLoop
 
float fadeout = -1
 
BGMType bgmType
 

Static Public Attributes

static List< BgmPlayerBgmStack = new List<BgmPlayer>()
 
static System.Action< BgmPlayer, bool > BGMPlayEvent
 

Detailed Description

all bgmplayers will register into a stack, the bgmplayer on top of stack can reponse for the battle music when bgmplayer disabled, it'll leave the stack