Exemple #1
0
    public void insertCard(string cardName)
    {
        List <string> st = new List <string>();

        st.Add(cardName);
        pCardMdl.AddCards(st);
    }
Exemple #2
0
    public void InitRole(string roleId)
    {
        RoleStoryAsset ret = GameMain.GetInstance().GetModule <ResLoader>().LoadResource <RoleStoryAsset>("Roles/role" + roleId);

        roleStats.meili   = ret.initProperties[0];
        roleStats.tili    = ret.initProperties[1];
        roleStats.koucai  = ret.initProperties[2];
        roleStats.jiyi    = ret.initProperties[3];
        roleStats.fanying = ret.initProperties[4];

        money = ret.initMoney;

        pCardMdl.AddCards(ret.initCards);
        pCardMdl.AddCards(ret.initOwning);

        FakePlatformInfo();
        NowPlatformId = "begin";
    }
Exemple #3
0
    public void InitRole(string roleId)
    {
        RoleStoryAsset ret = GameMain.GetInstance().GetModule <ResLoader>().LoadResource <RoleStoryAsset>("Roles/role" + roleId);

        roleStats.waiguan = ret.initProperties[0];
        roleStats.caiyi   = ret.initProperties[1];
        roleStats.kangya  = ret.initProperties[2];
        roleStats.jishu   = ret.initProperties[3];
        roleStats.koucai  = ret.initProperties[4];

        //初始金钱
        money = ret.initMoney + 0;

        pCardMdl.AddCards(ret.initCards);
        pCardMdl.AddCards(ret.initOwning);

        BadPoint     = 20;
        XinqingLevel = 10;

        FakePlatformInfo();
        NowPlatformId = "begin";
    }
Exemple #4
0
    //public void getRandomCard()
    //{
    //    int randInt = UnityEngine.Random.Range(1,5);
    //    cardName = "card800" + randInt.ToString();
    //}

    public void insertCard(string cardName)
    {
        if (cardName != null)
        {
            List <string> st = new List <string>();
            st.Add(cardName);
            pCardMdl.AddCards(st);
            CardAsset ca = pCardMdl.Load(cardName);
            if (ca != null)
            {
                mUIMgr.ShowHint("获得卡牌:" + ca.CardName);
            }
        }
    }