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