Example #1
0
    private void Start()
    {
        RedPointSystem redPointSystem = new RedPointSystem();

        redPointSystem.InitRedPointTreeNode();

        //设置红点的节点处理函数
        redPointSystem.SetRedPointNodeCallBack(RedPointConst.MAIL, OnMailRedPointChange);
        redPointSystem.SetRedPointNodeCallBack(RedPointConst.MAIL_SYSTEM, OnMailSystemRedPointChange);
        redPointSystem.SetRedPointNodeCallBack(RedPointConst.MAIL_TEAM, OnMailTeamRedPointChange);


        redPointSystem.SetInvoke(RedPointConst.MAIL_SYSTEM, 10);
        redPointSystem.SetInvoke(RedPointConst.MAIL_TEAM, 8);
    }
Example #2
0
    private void Start()
    {
        RedPointSystem rps = new RedPointSystem();

        rps.InitRedPointTreeNode();

        // 设置 红点节点的处理函数
        rps.SetRedPointNodeCallBack(RedPointConst.mail, MailCallBack);
        rps.SetRedPointNodeCallBack(RedPointConst.mailSystem, MailSystemCallBack);
        rps.SetRedPointNodeCallBack(RedPointConst.mailTeam, MailTeamCallBack);

        // 激发节点变化
        rps.SetInvoke(RedPointConst.mailSystem, 3);
        rps.SetInvoke(RedPointConst.mailTeam, 2);
    }