public Form1() { InitializeComponent(); this.tabMain.Region = new Region(new RectangleF(this.tabPage1.Left, this.tabPage1.Top, this.tabPage1.Width, this.tabPage1.Height)); CloseProject(); InterfaceUpdate = new HandleInterfaceUpdateDelegate(UpdateRTUData); showInfo = new ShowDebugInfo(UpdateDebugInfo); }
private void InitializeDebugInformation() { GameObject obj = Instantiate(prefabShowInfo); mdebuginstance = obj; DebugPOICreate dbobj = obj.GetComponent <DebugPOICreate>(); dbobj.BTService = BTService; ShowDebugInfo shobj = obj.GetComponent <ShowDebugInfo>(); shobj.ApplyMap(map); }