示例#1
0
 bool IGourdUI.UIViewIsValidForDevice(UIViewConfigData viewData, AppDeviceData deviceData)
 {
     return(UIViewFilterResolver.ViewFilterResult(
                viewData.filterData.positiveFilters.ToArray(),
                viewData.filterData.negativeFilters.ToArray(),
                deviceData));
 }
示例#2
0
 /// <summary>
 /// Cycles through filter components in this view and evaluates
 /// </summary>
 /// <param name="deviceData"></param>
 private void FilterComponents(AppDeviceData deviceData)
 {
     foreach (var c in _filterComponents)
     {
         c.gameObject.SetActive(
             UIViewFilterResolver.ViewFilterResult(
                 c.filterData.positiveFilters.ToArray(),
                 c.filterData.negativeFilters.ToArray(),
                 deviceData));
     }
 }