private void OnEnable()
    {
        Prototype.NetworkLobby.MyLobbyManager lobbyManager = GameObject.Find("LobbyManager").GetComponent <Prototype.NetworkLobby.MyLobbyManager>();
        Button button = GetComponent <Button>();

        button.onClick.AddListener(lobbyManager.findMatch);
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     gameToPlay  = new string[3];
     s_Singleton = this;
     DontDestroyOnLoad(gameObject);
     players = new List <Player>();
 }