Example #1
0
    /// <summary>
    /// 绑定开始战斗按钮的事件
    /// </summary>
    void BindBeginFight()
    {
        ButtonWidget button_fight = (ButtonWidget)widgetsMap["Attack_button"];

        button_click_fight   = button_fight.GetComponent <Animation> ();
        button_fight.onClick = OnClick_BeginFight;
    }