取消开始应用请求权限;淡入淡出ios

This commit is contained in:
Caiyanpeng committed 2021-09-15 21:11:21 +08:00
1 parent 49c264ff36
commit 8c7a9afaa3
8 files changed
+21 -17

No files matched your search

+14
View File
@@ -502,5 +502,19 @@ namespace Assets.Scripts
{
UIManager.Instance.StartCoroutine(TimerFunc(seconds, action));
}
public static void MyDOFade(this Transform transform)
{
var cg = transform.GetComponent<CanvasGroup>();
if (cg)
{
cg.alpha = 0;
#if UNITY_IOS
cg.DOFade(1f, .6f);
#else
cg.DOFade(1f, .3f);
#endif
}
}
}
}