private void network_onJoinChannel(int channelID, bool success, string message) { Debug.Log(string.Format("network_onJoinChannel: channelID={0} success={1} message={2}", channelID, success, message)); TNManager.SetPlayerData("isQue", false); button_play_onClick(); }
void RFC_EnterGame(int channelid) { //set Que to false here //or set when entering any new channel via the callback TNManager.SetPlayerData("isQue", false); TNManager.JoinChannel(channelid, gameScene, false, roomPlayerCount, null, true); }
public bool Init() { if (TNManager.isConnected) { TNManager.SetPlayerData("isReady", false); return(true); } return(false); }
private void button_play_onClick() { //button_play.interactable = false; Debug.Log(TNManager.player.Get <bool>("isQue")); TNManager.SetPlayerData("isQue", true); tno.Send("RFC_QueGame", Target.Host, TNManager.playerID, TNManager.playerName); }
public override void OnEnter() { TNManager.SetPlayerData(DataName.Value, Data.Value); Finish(); }
public void Ready() { TNManager.SetPlayerData("isReady", true); Debug.Log(TNManager.players.Count); tno.Send("RFC_ReadyGame", Target.Host); }