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); }
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()); } }
public void SetUI(UIfunc func) { _UIDisplay = new UIfunc(func); }