Beispiel #1
0
    public void nextClick()
    {
        inputRC.gameObject.SetActive(true);
        btnOK.gameObject.SetActive(true);
        btnNext.gameObject.SetActive(false);
        btnExit.gameObject.SetActive(false);
        Dispatch(AreaCode.CHARACTER, CharacterEvent.RUNCOUNT_CLEAR_CARD, null);
        if (libraryModel.RemainCardNum() < 30)
        {
            libraryModel.Init();
        }
        //发牌
        cardList = new List <Card>();
        System.Random r   = new System.Random();
        int           num = r.Next(4, 11);

        cardList = libraryModel.MultiDeal(num);
        Dispatch(AreaCode.CHARACTER, CharacterEvent.RUNCOUNT_INIT_CARD, cardList);
    }