You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
459 B

5 years ago
5 years ago
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class LobbyUIController : MonoBehaviour {
  5. public Multiplayer.PlayersManager playerMan;
  6. public void OnClickStartGame()
  7. {
  8. playerMan.LocalPlayer.GetComponent<LocalPlayer>().enabled = true;
  9. Multiplayer.ClientManager.Instance.SendMessage(Multiplayer.PlayerMsgID.GameStart, new Multiplayer.PlayerMsg(Multiplayer.ClientManager.Instance.ID));
  10. }
  11. }