ToString() public method

public ToString ( ) : string
return string
Esempio n. 1
0
		public void OnPlayerConnected(NetworkPlayer player)
		{
			Debug.Log("OnPlayerConnected");
			int count = Network.connections.Length;

			if (count == 3) 
			{
				//安排好座位后,进入游戏场景
				this.ArrangeSeat ();

				LO_GameMessage message = new LO_GameMessage ();
				message.state = 100;
				message.user_list = this.user_list;
				message.message = "create game";

				SendGameMessage (message.ToString());
			}
		}
Esempio n. 2
0
		public void OnConnectedToServer()
		{
			this.JoinBlock(0);
			Debug.Log("OnConnectedToServer");

			LO_GameMessage message = new LO_GameMessage ();
			message.state = 101;
			message.user = RX_UserManager.DefaultUser;
			message.message = "join game";

			SendGameMessage (message.ToString());
		}
Esempio n. 3
0
		//开始游戏
		public void StartGame()
		{
			if (Network.isServer)
			{
				LO_GameMessage message = new LO_GameMessage ();
				message.state = 103;
				message.user = RX_UserManager.DefaultUser;

				SendGameMessage (message.ToString ());
			}
		}