Exemple #1
0
    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);
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     ComponentTools.SetUIEventListener(gameObject, "SoundBtn", OnSound);
 }
Exemple #3
0
 void Awake()
 {
     AudioManager.Instance.PlayBGM((int)BGMType.BGM02);
     ComponentTools.SetUIEventListener(gameObject, "fightBtn", OnBattle);
 }