Beispiel #1
0
 public MainForm()
 {
     InitializeComponent();
     clientConfig    = Config.LoadConfig(@"LocalRunConfig.xml");;
     showInfoBoxList = new List <RichTextBox>();
     runnerList      = new List <Thread>();
     comList         = new List <SerialPort>();
     showInfoBoxList.Add(richTextBox1);
     showInfoBoxList.Add(richTextBox2);
     showInfoBoxList.Add(richTextBox3);
     comList.Add(new SerialPort());
     comList.Add(new SerialPort());
     comList.Add(new SerialPort());
     UIDisplay = new UIfunc(UpdateUI_Handle);
 }
Beispiel #2
0
    public override void OnStartServer()
    {
        base.OnStartServer();
        var RoomManagerObj = GameObject.Find("NetworkRoomManager");

        hUD         = RoomManagerObj.GetComponent <NetworkManagerHUDWBTB>();
        roomManager = RoomManagerObj.GetComponent <NetworkRoomManagerWBTB>();
        for (int i = 0; i < 6; i++)
        {
            roomslots.Add(0);
        }
        //playerNameList[index] = hUD.SetPlayerName;
        //LobbySoundManager = GameObject.Find("LocalSoundManager");
        uifunc = GameObject.Find("UIfunction").GetComponent <UIfunc>();
        GameStartBtn.GetComponent <Button>().onClick.AddListener(uifunc.GameStartButton);
        if (isServer)
        {
            StartCoroutine(CreateMappingInvoke());
        }
    }
Beispiel #3
0
 public void SetUI(UIfunc func)
 {
     _UIDisplay = new UIfunc(func);
 }