예제 #1
0
    //===================== when clicking   Create Channel button, directly call ========================//
    public void CreateGameChannel()
    {
        if (GlobalData.IsOpenedChannel())
        {
            gameUserManager.ShowInfo("You already have opened channel.");
            return;
        }
        string address = xayaClient.GetNewAddress(GlobalData.gPlayerName);
        string value   = "{\"g\":{\"xs\":{\"c\":{\"addr\":\"" + address + "\"}}}}";
        string texid   = xayaClient.NameUpdate(GlobalData.gPlayerName, value);

        GetComponent <GameUserManager>().ShowInfo("CREATE CHANNEL. Please wait...");

        //RunChannelService(texid);
        //=================== Waiting state ==================//
        //StartChannelWaiting(texid);
        //====================================================//
    }