public QueueData(CrystalPanel panel, MajorModule module) { crystalPanel = panel; this.module = module; }
private void CrystalPanel_OnUnplugButtonClicked(On.CrystalPanel.orig_OnUnplugButtonClicked orig, CrystalPanel self) { // If the shift key is down, instead of doing it right away, add it to a queue. if (ConditionalAddToQueue(new QueueData(self, new DynData <CrystalPanel>(self).Get <MajorModule>("module")))) { self.Hide(false); return; } orig(self); }
private void Awake() { crystals = this; gemComponents = new UI2DSprite[3]; loadComponents(); }