地球null问题,隐藏划船机

This commit is contained in:
CaiYanPeng 2021-11-09 16:47:21 +08:00
parent 609e4dc367
commit 8e88b4adba
11 changed files with 239 additions and 3018 deletions

View File

@ -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
{

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

View File

@ -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

View File

@ -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

View File

@ -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();

View File

@ -179,7 +179,7 @@ PlayerSettings:
applicationIdentifier:
Android: com.ZhiXingPai.PowerFunUnity
buildNumber:
iPhone: 2.0.3.0
iPhone: 2.0.5.0
AndroidBundleVersionCode: 7
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 30
@ -256,7 +256,7 @@ PlayerSettings:
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
templatePackageId: com.unity.template.3d@4.2.8
templateDefaultScene: Assets/Scenes/SampleScene.unity
AndroidTargetArchitectures: 1
AndroidTargetArchitectures: 3
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
@ -868,7 +868,7 @@ PlayerSettings:
platformArchitecture:
iPhone: 1
scriptingBackend:
Android: 0
Android: 1
Standalone: 0
il2cppCompilerConfiguration:
Standalone: 0