public DynShelterUI(FunctionConf_Dynshelter configurator) { _configurator = configurator; _modManager = configurator.GetModManager(); _UISelector = configurator.GetUISelector(); _uiSelectorPos = new Rect(0,Screen.height/2 - viewHeight/2,200,viewHeight); _uiSlideDetect = new Rect(0,Screen.height/2 - (viewHeight+100)/2,200,viewHeight+100); _uiSvExt = new Rect(0,0,_uiSelectorPos.width,viewHeight); targetPos = margin-(viewHeight/4); _rightArea = new Rect(Screen.width-260,100,260,Screen.height-100); _leftArea = new Rect(0.0f, 0.0f, Screen.width * 2.0f, Screen.height);//new Rect(0,_uiSlideDetect.y-200,260,_uiSelectorPos.height+200+150); _upperArea = new Rect(Screen.width/2 - 400,50,800,150); items = new string[0]; }