public void Setup(MatchInfoSnapshot _matchInfo, JoinRoomDelegate _joinRoomCallback) { matchInfo = _matchInfo; joinRoomCallback = _joinRoomCallback; roomLabel.text = matchInfo.name + " (" + matchInfo.currentSize + "/" + matchInfo.maxSize + ")"; }
public void Setup(MatchInfoSnapshot match, JoinRoomDelegate joinRoomCallback) { _match = match; _joinRoomCallback = joinRoomCallback; _roomNameText.text = _match.name + " (" + _match.currentSize + "/" + _match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot _matchInfo, JoinRoomDelegate _delegate, int _seconds) { this.transform.GetChild(0).gameObject.GetComponent <Text> ().text = _matchInfo.name; p_matchInfo = _matchInfo; p_joinDelegate = _delegate; p_seconds = _seconds; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot matchInfo, JoinRoomDelegate joinCallback) { Debug.Log("Found match " + matchInfo.name); joinRoomCallback = joinCallback; match = matchInfo; roomNameText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot matchInfo, JoinRoomDelegate joinRoomDelegate) { this.matchInfo = matchInfo; this.joinRoomDelegate = joinRoomDelegate; roomNameText.text = matchInfo.name + " (" + matchInfo.currentSize + "/" + matchInfo.maxSize + ")"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomListText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchDesc _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot _room, JoinRoomDelegate _joinRoomCallback) { room = _room; joinRoomCallback = _joinRoomCallback; roomNameText.text = room.name + " (" + room.currentSize + "/" + room.maxSize + ")"; }
public void Setup(MatchInfoSnapshot newMatch, JoinRoomDelegate joinRoomCallback) { match = newMatch; joinRoomDelegate = joinRoomCallback; roomNameText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { //Debug.Log ("Setup called"); match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; }
public void Setup(MatchInfoSnapshot match1, JoinRoomDelegate joinRoomCallback1) { match = match1; joinRoomCallBack = joinRoomCallback1; roomNameText.text = match.name + " ( " + match.currentSize + " / " + match.maxSize + " )"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallBack) { match = _match; joinRoomCallBack = _joinRoomCallBack; roomName.text = match.name + "(" + match.currentSize + "/" + match.maxSize + ")" + " " + "<i>click to join</i>"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; roomNameText.text = match.name + string.Format(" ({0}/{1})", match.currentSize, match.maxSize); joinRoomCallback = _joinRoomCallback; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomName.text = match.name; connectedPlayers.text = "[ " + match.currentSize + " / " + match.maxSize + " ]"; }
public void Setup(MatchInfoSnapshot match, JoinRoomDelegate joinRoomCallback) { this.match = match; this.joinRoomCallback = joinRoomCallback; Debug.Log(this.match.name + " (" + this.match.currentSize + "/" + this.match.maxSize + ")"); roomNameText.text = this.match.name + " (" + this.match.currentSize + "/" + this.match.maxSize + ")"; }
/// <summary> /// Setup WAN server slot in the UI /// </summary> /// <param name="match"></param> /// <param name="joinRoom"></param> public void SetupWAN(MatchInfoSnapshot match, JoinRoomDelegate joinRoom) { isLAN = false; this.match = match; joinRoomCallback = joinRoom; transform.Find("Name").GetComponent <TMP_Text>().text = "WAN: " + match.name; gameObject.tag = "WAN"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = match.name; roomMapText.text = "Map: Default"; roomPlayersText.text = "Players: ( " + match.currentSize + " / " + match.maxSize + " )"; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = match.name; roomSizeText.text = match.currentSize + "/" + match.maxSize; joinButton.onClick.AddListener(JoinRoom); }
public void SetUpRoom(MatchInfoSnapshot match, JoinRoomDelegate joinDelegate) { m_match = match; m_joinRoomDelegate = joinDelegate; if (m_roomNameText != null) { m_roomNameText.text = m_QuestName + match.name + "( " + match.currentSize + "/" + match.maxSize + ")"; } }
/// <summary> /// Setup the match. /// </summary> /// <param name="aMatch"> /// The _match to setup. /// </param> /// <param name="aJoinRoomCallback"> /// The _join room callback to use. /// </param> public void Setup(MatchInfoSnapshot aMatch, JoinRoomDelegate aJoinRoomCallback) { // Set the match this.match = aMatch; // Set the call back function this.joinRoomCallback = aJoinRoomCallback; // Set the text of the join room button this.roomNameText.text = this.match.name + " (" + this.match.currentSize + "/" + this.match.maxSize + ")"; }
public void SetMatch(MatchInfoSnapshot match, JoinRoomDelegate OnJoinCallback) { this.match = match; this.OnJoinCallback = OnJoinCallback; if (match.currentSize < match.maxSize) { roomNameText.text = match.name + "(Open)"; } else { roomNameText.text = match.name + "(Full)"; } }
private MatchInfoSnapshot match; // Information about the match that the list item is holding. public void Setup(MatchInfoSnapshot match, JoinRoomDelegate joinRoomCallback) { this.match = match; this.joinRoomCallback = joinRoomCallback; matchInfoText.text = match.name + " (" + match.currentSize + "/" + match.maxSize + ")"; // Sets the match info text to the match name + the amount of connected players. if (match.isPrivate) // If the match is private, show the user it's passworded in a specific color (red) { matchTypeText.color = new Color32(255, 69, 69, 255); matchTypeText.text = "PASSWORDED"; } else // Otherwise show that it's an open game in another color (green). { matchTypeText.color = new Color32(149, 255, 69, 255); matchTypeText.text = "OPEN"; } }
public void SetRoomButton(MatchInfoSnapshot _match, JoinRoomDelegate joinFunction) { match = _match; joinRoomDelegate = joinFunction; SetRoomInfo(match.name, "测试地图", match.currentSize + "/" + match.maxSize); }
public void SetUp(MatchInfoSnapshot match, JoinRoomDelegate _joinRoomCallback) { matchInfo = match; joinRoomCallback = _joinRoomCallback; roomNameText.text = matchInfo.name + " (" + matchInfo.currentSize + "/" + matchInfo.maxSize + ") "; }
public void Setup(MatchInfoSnapshot _match, JoinRoomDelegate _joinRoomCallback) { match = _match; joinRoomCallback = _joinRoomCallback; roomNameText.text = "" + match.name; }
public void Setup(MatchInfoSnapshot match, JoinRoomDelegate _joinRoomCallback) { matchInfo = match; joinRoomCallback = _joinRoomCallback; roomNameText.text = string.Format("{0} ({1}/{2})", match.name, match.currentSize, match.maxSize); }
public void Setup(MatchInfoSnapshot matchh, JoinRoomDelegate joinRoomCallBackk) { match = matchh; joinRoomCallBack = joinRoomCallBackk; roomname.text = "(" + match.currentSize + "/" + match.maxSize + ") " + match.name; }