void SetInactive() { PowerCompTrader.PowerOn = !PowerCompTrader.PowerOn; Glower?.UpdateLit(Map); PowerCompTrader.PowerOn = false; if (Glower != null) { Glower.Props.glowColor = Clear; Glower.UpdateLit(Map); Log.Message($"{ThingID} {Glower.Glows}|{PowerCompTrader.PowerOn}"); } }
private void SetActive() { FillableDrawer?.Trigger(); PowerCompTrader.PowerOn = !PowerCompTrader.PowerOn; Glower?.UpdateLit(Map); PowerCompTrader.PowerOn = true; if (Glower != null) { Glower.Props.glowColor = GlowColor; Glower.UpdateLit(Map); Log.Message($"{ThingID} {Glower.Glows}|{PowerCompTrader.PowerOn}"); } }