private void Start() { //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Expected O, but got Unknown sbc = new SysBotController(InjectionType.Pouch); UISB.AssignSysbot(sbc); #if PLATFORM_ANDROID usbac = new USBBotAndroidController(); UISB.AssignUSBBotAndroid(usbac); #endif #if UNITY_STANDALONE || UNITY_EDITOR usbc = new USBBotController(); UISB.AssignUSBBot(usbc); #endif for (int i = 0; i < MAXITEMS; i++) { Items.Add(new Item(Item.NONE)); } uiitems = new List<UI_ACItem>(GetComponentsInChildren<UI_ACItem>()); List<UI_ACItem> list = new List<UI_ACItem>(); int num = 0; foreach (UI_ACItem uiitem in uiitems) { GameObject obj = Instantiate(PrefabItem.gameObject); obj.transform.SetParent(transform); obj.transform.position = uiitem.transform.position; obj.transform.localScale = uiitem.transform.localScale; UI_ACItem component = obj.GetComponent<UI_ACItem>(); int currentIndex = num; component.ButtonComponent.onClick.AddListener(delegate { SetSelection(currentIndex); }); list.Add(component); uiitem.gameObject.SetActive(false); num++; } uiitems = list; PrefabItem.gameObject.SetActive(false); set(Items.ToArray()); PocketInjector inj = new PocketInjector(Items, sbc.Bot); injector = new AutoInjector(inj, AfterRead, AfterWrite); #if PLATFORM_ANDROID PocketInjector usbaInj = new PocketInjector(Items, usbac.Bot); usbaInjector = new AutoInjector(usbaInj, AfterRead, AfterWrite); #endif #if UNITY_STANDALONE || UNITY_EDITOR PocketInjector usbInj = new PocketInjector(Items, usbc.Bot); usbInjector = new AutoInjector(usbInj, AfterRead, AfterWrite); #endif SetSelection(0); LastInstanceOfItemGrid = this; }
private void LoadInjector() { try { Injector = new AutoInjector("Dofus", Path.Combine(System.Windows.Forms.Application.StartupPath, "AmaknaProxy.Hooks.dll"), (ContainerLogger)Logger); Injector.Start(); this.Invoke((MethodInvoker)delegate { ToolStripMenuItem_Proxy.Text = "Proxy: Activé"; }); } catch (Exception ex) { Logger.Error(" (LoadInjector) " + ex.Message); } }
public SysBotUI(AutoInjector injector, SysBotController c) { InitializeComponent(); Bot = c; Injector = injector; var offset = Bot.GetDefaultOffset(); Injector.SetWriteOffset(offset); RamOffset.Text = offset.ToString("X8"); TB_IP.Text = Bot.IP; TB_Port.Text = Bot.Port; Bot.PopPrompt(); TIM_Interval.Tick += (s, e) => injector.Read(); }
public SysBotUI(AutoInjector injector, SysBotController c, AutoInjector injectorUSB, USBBotController b) { InitializeComponent(); this.TranslateInterface(GameInfo.CurrentLanguage); Bot = c; Injector = injector; BotUSB = b; InjectorUSB = injectorUSB; var offset = Bot.GetDefaultOffset(); Injector.SetWriteOffset(offset); RamOffset.Text = offset.ToString("X8"); TB_IP.Text = Bot.IP; TB_Port.Text = Bot.Port; Bot.PopPrompt(); TIM_Interval.Tick += (s, e) => injector.Read(); }