取消开始应用请求权限;淡入淡出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

@@ -9,6 +9,7 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
using DG.Tweening;
using Assets.Scripts.Devices.Ble.Devices;
using Assets.Scripts;
public class DeviceController : PFUIPanel
{
@@ -187,15 +188,12 @@ public class DeviceController : PFUIPanel
public override void Show()
{
var cg = this.GetComponent<CanvasGroup>();
cg.alpha = 0;
base.Show();
App.MainDeviceAdapter.ClearDevice();
#if UNITY_ANDROID || UNITY_IOS
App.MainDeviceAdapter.StartScan();
#endif
cg.DOFade(1f, 0.3f);
transform.MyDOFade();
}
protected override void OnDisable()
@@ -254,11 +254,8 @@ public class HomeController : PFUIPanel
public override void Show()
{
var cg = this.GetComponent<CanvasGroup>();
cg.alpha = 0;
base.Show();
cg.DOFade(1f, 0.3f);
transform.MyDOFade();
GetSummary();
}
}
@@ -465,8 +465,6 @@ public class MapListController : PFUIPanel
transform.Find("RawImage").GetComponent<RawImage>().texture = App.DefaultRotateTexture;
}
ResetPanel();
var cg = this.GetComponent<CanvasGroup>();
cg.alpha = 0;
cg.DOFade(1f, .3f);
transform.MyDOFade();
}
}
+1 -3
View File
@@ -12,9 +12,7 @@ public class RaceScript : PFUIPanel
public override void Show()
{
base.Show();
var cg = this.GetComponent<CanvasGroup>();
cg.alpha = 0;
cg.DOFade(1f, .5f);
transform.MyDOFade();
}
protected void StartTime()
{
+1 -3
View File
@@ -137,9 +137,7 @@ public class SettingContoller : PFUIPanel
public override void Show()
{
var cg = this.GetComponent<CanvasGroup>();
cg.alpha = 0;
base.Show();
cg.DOFade(1f, 0.3f);
transform.MyDOFade();
}
}