void Awake() { AudioManager.Instance.PlayBGM((int)BGMType.BGM01); m_tex_leftRole = ComponentTools.FindComponent <UITexture>(gameObject, "leftRole"); m_tex_rightRole = ComponentTools.FindComponent <UITexture>(gameObject, "rightRole"); m_lbl_name = ComponentTools.FindComponent <UILabel>(gameObject, "name"); m_lbl_dialogue = ComponentTools.FindComponent <UILabel>(gameObject, "dialogue"); ComponentTools.SetUIEventListener(gameObject, "mask", OnNext); }
// Use this for initialization void Start() { ComponentTools.SetUIEventListener(gameObject, "SoundBtn", OnSound); }
void Awake() { AudioManager.Instance.PlayBGM((int)BGMType.BGM02); ComponentTools.SetUIEventListener(gameObject, "fightBtn", OnBattle); }