public void SetShow(EditorShowOptions option, bool show) { switch (option) { case EditorShowOptions.DebugText: isShowDebugText = show; break; case EditorShowOptions.DebugGeosets: isShowDebugGeosets = show; break; case EditorShowOptions.Plane: isShowPlane = show; break; case EditorShowOptions.Coord: isShowCoord = show; break; case EditorShowOptions.LightCoord: isShowLightCoord = show; break; } }
public bool IsShow(EditorShowOptions option) { switch (option) { case EditorShowOptions.DebugText: return(isShowDebugText); case EditorShowOptions.DebugGeosets: return(isShowDebugGeosets); case EditorShowOptions.Plane: return(isShowPlane); case EditorShowOptions.Coord: return(isShowCoord); } return(false); }