地球null问题,隐藏划船机
No files matched your search
@@ -12,7 +12,7 @@ public class GUIMainNetWorkInfo : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
[SerializeField] Text labelBattery;
|
||||
[SerializeField] Image NetImage;
|
||||
long _delayTime = 0;
|
||||
long _delayTime = 1;
|
||||
Dictionary<int, Sprite> dict;
|
||||
int getType(long a)
|
||||
{
|
||||
@@ -91,6 +91,7 @@ public class GUIMainNetWorkInfo : MonoBehaviour
|
||||
{
|
||||
if (_delayTime != -1)
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)
|
||||
{
|
||||
NetImage.sprite = dict[getType(_delayTime) + 5];
|
||||
@@ -99,6 +100,9 @@ public class GUIMainNetWorkInfo : MonoBehaviour
|
||||
{
|
||||
NetImage.sprite = dict[getType(_delayTime)];
|
||||
}
|
||||
#else
|
||||
NetImage.sprite = dict[getType(_delayTime)];
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.9 KiB |
@@ -3448,7 +3448,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &4071833300312694754
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -94,7 +94,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &3111753855602397197
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1544,7 +1544,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1724308109339741718
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -68,18 +68,18 @@ public class MainController : BaseScene
|
||||
//{
|
||||
// UIManager.ShowHomePanel();
|
||||
//});
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
if (!App.IsRowerMode.HasValue)
|
||||
{
|
||||
UIManager.ShowRowerSelector();
|
||||
return;
|
||||
}
|
||||
if (App.IsRowerMode == true)
|
||||
{
|
||||
UIManager.ShowRowerPanel();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
//#if UNITY_ANDROID || UNITY_IOS
|
||||
// if (!App.IsRowerMode.HasValue)
|
||||
// {
|
||||
// UIManager.ShowRowerSelector();
|
||||
// return;
|
||||
// }
|
||||
// if (App.IsRowerMode == true)
|
||||
// {
|
||||
// UIManager.ShowRowerPanel();
|
||||
// return;
|
||||
// }
|
||||
//#endif
|
||||
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
|
||||