Exemple #1
0
        private void ChangeBtn_Click(object sender, EventArgs e)
        {
            string nameRoom = ListRooms.GetItemText(ListRooms.SelectedItem);
            string status   = StatusList.GetItemText(StatusList.SelectedItem);
            string text     = room.changeStatusRoom(nameRoom, status);

            MessageBox.Show(text);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)

        {
            string        nameRoom = ListRooms.GetItemText(ListRooms.SelectedItem);
            string        text     = room.getRoomStatus(nameRoom);
            List <string> list     = new List <string>();

            list.Add(text);
            StatusList.DataSource = list;
        }
Exemple #3
0
    void Start()
    {
        DontDestroyOnLoad(this);
        PhotonNetwork.ConnectUsingSettings("0.1");
        PhotonNetwork.logLevel = PhotonLogLevel.Full;
        _listRooms             = canvas.GetComponent <ListRooms>();
        _listModels            = canvas.GetComponent <ListModels>();
        uiManager  = GetComponent <UIManagerLobby>();
        playerData = new string[2];

        MarkersData      = new List <string[]>();
        ObjectMasterData = new List <string[]>();

        markerData    = new string[2];
        feedback.text = "";
        feedback.GetComponent <Text>().color = Color.red;
    }
    void Start ()
    {
        DontDestroyOnLoad(this);
        PhotonNetwork.ConnectUsingSettings("0.1");
        PhotonNetwork.logLevel = PhotonLogLevel.Full;
        _listRooms = canvas.GetComponent<ListRooms>();
        _listModels = canvas.GetComponent<ListModels>();
        uiManager = GetComponent<UIManagerLobby>();
        playerData = new string[2];

        MarkersData = new List<string[]>();
        ObjectMasterData = new List<string[]>();

        markerData = new string[2];
        feedback.text = "";
        feedback.GetComponent<Text>().color = Color.red;
    }
Exemple #5
0
 private void OnListJoinedRooms()
 {
     ListRooms?.Invoke(this, null);
 }