コード例 #1
0
        /// <summary>
        /// 打印提案
        /// </summary>
        public void Agree()
        {
            string str = ProposalManager.PrintProp();

            ProposalManager.AgreeProp();
            if (OutPut != null)
            {
                OutPut.text += str;
            }
        }
コード例 #2
0
ファイル: CardMsg.cs プロジェクト: RyouTomokin/NewGBT_Game
        //显示手牌的菜单(若为替换模式,则将手牌添加到协议书)
        public void ShowAdd()
        {
            //不是替换模式则显示菜单栏
            if (!BM.isReplace)
            {
                GM.Show_Add(obj);
            }
            else
            {
                //传递数据
                //GM.Player.GetComponent<ActionData>().Proposal[0] = gameObject;
                //GM.Player.GetComponent<ActionData>().Proposal[1] = BM.Bereplace;

                //Debug.Log("替换提案:" + BM.Bereplace.name + "为提案:" + gameObject.name);
                //BM.RemoveBook(BM.Bereplace, true);    //删除被替换的协议书
                //HM.Add_Book(gameObject, true);        //添加手牌到协议书
                ProposalManager.AddProp(gameObject, BM.Bereplace);
                BM.isReplace = false;
            }
        }
コード例 #3
0
        public GameObject Bereplace;        //被替换的卡牌对象

        public void Add_Book_Prop(GameObject book)
        {
            ProposalManager.AddProp(null, book);
        }
コード例 #4
0
 public void Add_Book_Prop(GameObject hand)
 {
     ProposalManager.AddProp(hand, null);
 }