public static void ColorBlock(Action block) { var colorBlock = new GUIColorBlock(); block(); colorBlock.RestoreColors(); }
public BaseGUI() { stateBlock = new StateBlock(); colorBlock = new GUIColorBlock(); labelWidthBlock = new LabelWidthBlock(); contentColorBlock = new ContentColorBlock(); indentBlock = new IndentBlock(this); ScrollView = new ScrollViewBlock(this); }