private void HandleModulePass() { if (_alreadyHandledPass) { return; } _alreadyHandledPass = true; switch (FakeStatusLight.SetLightColor(FakeStatusLight.PassColor)) { case StatusLightState.Red: BombModule.LogFormat("Setting the status light to Red. Did you want that with a side of strikes? Keepo"); FakeStatusLight.HandlePass(StatusLightState.Red); break; case StatusLightState.Green: BombModule.LogFormat("Setting the status light to its normal Green color for solved."); FakeStatusLight.HandlePass(StatusLightState.Green); break; //case StatusLightState.Off: default: BombModule.LogFormat("Turning off the Status light. Kappa"); FakeStatusLight.HandlePass(); break; } BombModule.Log("Module Solved"); }
private void NoSimulationLog(string message, params object[] args) { if (_NO_SIMULATION_RUNNING) { BombModule.LogFormat(message, args); } }
private void Repaint() { _bombModule.Log("Generating painting..."); _painting.Repaint(); SetupPaletteToPaintingLinks(); _painting.selectionGrid.SetChildren(GetComponentsInChildren <FluidSelectable>()); foreach (PaintingCell cell in _painting.Cells) { PaintingCell closureCell = cell; _bombModule.LogFormat("{0} => {1}.", closureCell.name, cell.ColorOption); closureCell.fluidSelectable.selectable.Parent = _selectable; closureCell.fluidSelectable.selectable.OnInteract += () => OnCellInteract(closureCell); } }