Ejemplo n.º 1
0
 //自动适配安全区域
 public void UF_AutoFitNotchScreen()
 {
     if (GlobalSettings.NativeInfo != null)
     {
         float offset = GHelper.UF_ParseFloat(GlobalSettings.NativeInfo.UF_GetValue("SAFE_OFFSET", "0"));
         if (offset > 0)
         {
             UF_SetSafeOffset(offset);
         }
     }
 }
Ejemplo n.º 2
0
        public void UF_ExecuteTweenAlpha(string valchunk)
        {
            if (string.IsNullOrEmpty(valchunk))
            {
                return;
            }
            List <string> list = ListCache <string> .Acquire();

            GHelper.UF_SplitStringWithCount(valchunk, 4, list, ';');
            float vform      = GHelper.UF_ParseFloat(list[0]);
            float vto        = GHelper.UF_ParseFloat(list[1]);
            float vduration  = GHelper.UF_ParseFloat(list[2]);
            bool  vtimescale = GHelper.UF_ParseBool(list[3]);

            UF_CrossRenderAlpha(vform, vto, vduration, vtimescale);
            ListCache <string> .Release(list);
        }