private void StageLight_ColorChanged(StageLight source, StageLight.Color color) { if (color.alpha == 0) { lightCone.gameObject.SetActive(false); } else { lightCone.gameObject.SetActive(true); lightCone.color = new Color32(color.red, color.green, color.blue, color.alpha); } }
protected override CircuitNode CreateNode(CircuitManager manager) { return(stageLight = new StageLight(manager)); }