コード例 #1
0
    /// <summary>
    /// 添加Toggle点击事件
    /// </summary>
    /// <param name="uiName"></param>
    /// <param name="action"></param>
    protected void AddToggleListen(string uiName, UnityAction <bool> action)
    {
        UIBehaviour uiBehaviour = GetBehaviour(uiName);

        uiBehaviour.AddToggleListen(action);
    }