Esempio n. 1
0
 void OnCreate()
 {
     PubDefs.Print("创建房间,加载游戏");
     Param.zpCheck = zipaiToggle.isOn;
     Param.hpCheck = huapaiToggle.isOn;
     StartCoroutine(LoadGame());
 }
Esempio n. 2
0
    // 调试信息
    /// <summary>
    /// 打印牌墙
    /// </summary>
    public void PrintWall()
    {
        string strWallCards = "";

        for (int i = 0; i < m_astCardWall.Count; i++)
        {
            strWallCards += m_astCardWall[i].GetName();
        }
        PubDefs.Print(strWallCards);
    }
Esempio n. 3
0
    // 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);
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     PubDefs.Print("游戏场景开始加载");
 }
Esempio n. 5
0
 public void PrintOutCard(byte byChair)
 {
     PubDefs.Print(players[byChair].GetOutCardName());
 }
Esempio n. 6
0
 void OnCancel()
 {
     gameObject.SetActive(false);
     PubDefs.Print("取消创建房间");
 }
Esempio n. 7
0
 void OnHighCilcked()
 {
     PubDefs.Print("创建高级房");
 }
Esempio n. 8
0
 void OnMidClicked()
 {
     PubDefs.Print("创建中级房");
 }
Esempio n. 9
0
 void OnLowClicked()
 {
     PubDefs.Print("创建初级房");
     transform.Find("create_room_panel").gameObject.SetActive(true);
 }
Esempio n. 10
0
 private void OnClick()
 {
     PubDefs.Print("WxBt OnClick");
     StartCoroutine(Login());
     // load login
 }