public void SetUI(UIExternalContainer ui) { lock (ui) { FSOUI = ui; FSOUI.Width = Width; FSOUI.Height = Height; FSOUI.OnFrame += FSOUIFrame; } }