Ejemplo n.º 1
0
    public RedpointSystem()
    {
        s_instance        = this;
        _redpointTreeDict = new Dictionary <RedpointType, string[]>();
        _rootNodeDic      = new Dictionary <RedpointType, RedpointNode>();

        CreateTreeList();
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        system = new RedpointSystem();
        system.InitRedpointTreeNode();

        RedpointSystem.AddListener(RedpointType.Chat, RedPointConst.s_chatNodeWorldSub, OnCallbackWorldCub);
        RedpointSystem.AddListener(RedpointType.Chat, RedPointConst.s_chatNodeWorld, OnCallbackWorld);
        RedpointSystem.AddListener(RedpointType.Chat, RedPointConst.s_chatNode, OnCallbackChat);
    }
Ejemplo n.º 3
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.K))
     {
         RedpointSystem.SetRpNum(RedpointType.Chat, RedPointConst.s_chatNodeWorldSub, 2);
         RedpointSystem.SetRpNum(RedpointType.Chat, RedPointConst.s_chatNodeSingle, 2);
     }
     else if (Input.GetKeyDown(KeyCode.J))
     {
         RedpointSystem.RemoveLisnener(RedpointType.Chat, RedPointConst.s_chatNode);
         RedpointSystem.SetRpNum(RedpointType.Chat, RedPointConst.s_chatNodeWorldSub, 10);
     }
 }