void OnCreate() { PubDefs.Print("创建房间,加载游戏"); Param.zpCheck = zipaiToggle.isOn; Param.hpCheck = huapaiToggle.isOn; StartCoroutine(LoadGame()); }
// 调试信息 /// <summary> /// 打印牌墙 /// </summary> public void PrintWall() { string strWallCards = ""; for (int i = 0; i < m_astCardWall.Count; i++) { strWallCards += m_astCardWall[i].GetName(); } PubDefs.Print(strWallCards); }
// Use this for initialization void Start() { PubDefs.Print("加载大厅"); createLowBt = transform.Find("Create_low_button").GetComponent <Button>(); createMidBt = transform.Find("Create_mid_button").GetComponent <Button>(); createHighBt = transform.Find("Create_high_button").GetComponent <Button>(); createLowBt.onClick.AddListener(OnLowClicked); createMidBt.onClick.AddListener(OnMidClicked); createHighBt.onClick.AddListener(OnHighCilcked); }
// Use this for initialization void Start() { PubDefs.Print("游戏场景开始加载"); }
public void PrintOutCard(byte byChair) { PubDefs.Print(players[byChair].GetOutCardName()); }
void OnCancel() { gameObject.SetActive(false); PubDefs.Print("取消创建房间"); }
void OnHighCilcked() { PubDefs.Print("创建高级房"); }
void OnMidClicked() { PubDefs.Print("创建中级房"); }
void OnLowClicked() { PubDefs.Print("创建初级房"); transform.Find("create_room_panel").gameObject.SetActive(true); }
private void OnClick() { PubDefs.Print("WxBt OnClick"); StartCoroutine(Login()); // load login }