地球null问题,隐藏划船机

This commit is contained in:
Caiyanpeng committed 2021-11-09 16:47:21 +08:00
1 parent 609e4dc367
commit 8e88b4adba
11 files changed
+239 -3018

No files matched your search

+5 -1
View File
@@ -12,7 +12,7 @@ public class GUIMainNetWorkInfo : MonoBehaviour
// Start is called before the first frame update // Start is called before the first frame update
[SerializeField] Text labelBattery; [SerializeField] Text labelBattery;
[SerializeField] Image NetImage; [SerializeField] Image NetImage;
long _delayTime = 0; long _delayTime = 1;
Dictionary<int, Sprite> dict; Dictionary<int, Sprite> dict;
int getType(long a) int getType(long a)
{ {
@@ -91,6 +91,7 @@ public class GUIMainNetWorkInfo : MonoBehaviour
{ {
if (_delayTime != -1) if (_delayTime != -1)
{ {
#if UNITY_IOS || UNITY_ANDROID
if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork) if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)
{ {
NetImage.sprite = dict[getType(_delayTime) + 5]; NetImage.sprite = dict[getType(_delayTime) + 5];
@@ -99,6 +100,9 @@ public class GUIMainNetWorkInfo : MonoBehaviour
{ {
NetImage.sprite = dict[getType(_delayTime)]; NetImage.sprite = dict[getType(_delayTime)];
} }
#else
NetImage.sprite = dict[getType(_delayTime)];
#endif
} }
else else
{ {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because it is too large. Load diff
@@ -3448,7 +3448,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &4071833300312694754 --- !u!224 &4071833300312694754
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -94,7 +94,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &3111753855602397197 --- !u!224 &3111753855602397197
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -1544,7 +1544,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &1724308109339741718 --- !u!224 &1724308109339741718
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+12 -12
View File
@@ -68,18 +68,18 @@ public class MainController : BaseScene
//{ //{
// UIManager.ShowHomePanel(); // UIManager.ShowHomePanel();
//}); //});
#if UNITY_ANDROID || UNITY_IOS //#if UNITY_ANDROID || UNITY_IOS
if (!App.IsRowerMode.HasValue) // if (!App.IsRowerMode.HasValue)
{ // {
UIManager.ShowRowerSelector(); // UIManager.ShowRowerSelector();
return; // return;
} // }
if (App.IsRowerMode == true) // if (App.IsRowerMode == true)
{ // {
UIManager.ShowRowerPanel(); // UIManager.ShowRowerPanel();
return; // return;
} // }
#endif //#endif
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"])) if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
{ {
UIManager.ShowHomePanel(); UIManager.ShowHomePanel();
+3 -3
View File
@@ -179,7 +179,7 @@ PlayerSettings:
applicationIdentifier: applicationIdentifier:
Android: com.ZhiXingPai.PowerFunUnity Android: com.ZhiXingPai.PowerFunUnity
buildNumber: buildNumber:
iPhone: 2.0.3.0 iPhone: 2.0.5.0
AndroidBundleVersionCode: 7 AndroidBundleVersionCode: 7
AndroidMinSdkVersion: 24 AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 30 AndroidTargetSdkVersion: 30
@@ -256,7 +256,7 @@ PlayerSettings:
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
templatePackageId: com.unity.template.3d@4.2.8 templatePackageId: com.unity.template.3d@4.2.8
templateDefaultScene: Assets/Scenes/SampleScene.unity templateDefaultScene: Assets/Scenes/SampleScene.unity
AndroidTargetArchitectures: 1 AndroidTargetArchitectures: 3
AndroidSplashScreenScale: 0 AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0} androidSplashScreen: {fileID: 0}
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore' AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
@@ -868,7 +868,7 @@ PlayerSettings:
platformArchitecture: platformArchitecture:
iPhone: 1 iPhone: 1
scriptingBackend: scriptingBackend:
Android: 0 Android: 1
Standalone: 0 Standalone: 0
il2cppCompilerConfiguration: il2cppCompilerConfiguration:
Standalone: 0 Standalone: 0