Example #1
0
        private void Start_Click(object sender, EventArgs e)
        {
            outputListBox.Items.Clear();

            if (providerComboBox.SelectedIndex >= 0)
            {
                Guid id = ThreadManager.AddThread(TestThread);
                ThreadManager.StartThread(id, providerComboBox.SelectedIndex);
            }
        }
Example #2
0
    void Update()
    {
        if (Input.GetButtonDown("Fire1"))
        {
            manager.AddThread(t);
        }

        if (t != null)
        {
            if (t.Update())
            {
                t = null;
            }
        }
    }