取消开始应用请求权限;淡入淡出ios
This commit is contained in:
1 parent
49c264ff36
commit
8c7a9afaa3
8 files changed
+21
-17
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user