public void BeginInvoke(Action a) { var item = new CustomDispatcherItem { DispatchAction = a }; dispatchQueue.Enqueue(item); }
public void Invoke(Action a) { var item = new CustomDispatcherItem { DispatchAction = a }; dispatchQueue.Enqueue(item); while (!item.Executed) { MonoSAMGame.CurrentInst.Bridge.Sleep(0); } }