void ChangeSelectedObject(GameObject selected) { //find all objects in screen GameObject[] placedObjects; BeaconObject beacon = null; placedObjects = GameObject.FindGameObjectsWithTag("Beacons"); //DebuggingTextUpdate("change selected", selected.name); // MeshRenderer meshRenderer = selected.GetComponent<MeshRenderer>(); // meshRenderer.material.color = activeColor; foreach (GameObject current in placedObjects) { if (current.GetComponent <BeaconObject>() != null) { beacon = current.GetComponent <BeaconObject>(); MeshRenderer meshRenderer = current.GetComponent <MeshRenderer>(); if (selected != current) { meshRenderer.material.color = inactiveColor; } else { //Pass beacon data to panel meshRenderer.material.color = activeColor; UIManager.Instance.ShowInfoPanel(beacon.info); } } } }
public override void Go(string[] args) { if (args.Length == 0) { BeaconConsole.WriteLine("[!] Cannot run a job, no BOF.NET class specified to run"); return; } BeaconJobWriter btw = new BeaconJobWriter(); BeaconObject bo = Runtime.CreateBeaconObject(args[0], btw, new Runtime.InitialiseChildBOFNETAppDomain(InitialiseChildBOFNETAppDomain), null, null); BeaconJob beaconJob = new BeaconJob(bo, args.Skip(1).ToArray(), btw); Runtime.Jobs[beaconJob.Thread.ManagedThreadId] = beaconJob; BeaconConsole.WriteLine($"[+] Started Task {args[0]} with job id {beaconJob.Thread.ManagedThreadId}"); }