/// <summary> /// 打印提案 /// </summary> public void Agree() { string str = ProposalManager.PrintProp(); ProposalManager.AgreeProp(); if (OutPut != null) { OutPut.text += str; } }
//显示手牌的菜单(若为替换模式,则将手牌添加到协议书) 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; } }
public GameObject Bereplace; //被替换的卡牌对象 public void Add_Book_Prop(GameObject book) { ProposalManager.AddProp(null, book); }
public void Add_Book_Prop(GameObject hand) { ProposalManager.AddProp(hand, null); }