接入原生地球暂存
This commit is contained in:
1 parent
aa0c8d4fb6
commit
27c438aa3f
13 files changed
+57
-40
No files matched your search
@@ -126,6 +126,7 @@ namespace Assets.Scripts.Devices.Ant
|
||||
if (response.responseID == (byte)ANT_Managed_Library.ANT_ReferenceLibrary.ANTMessageID.BROADCAST_DATA_0x4E)
|
||||
{
|
||||
var pageNumber = response.messageContents[1];
|
||||
|
||||
switch (pageNumber)
|
||||
{
|
||||
case 16: //Page 16 - General Page
|
||||
@@ -223,6 +224,7 @@ namespace Assets.Scripts.Devices.Ant
|
||||
|
||||
private void HandleTrainerDataPage(byte[] dataPayload)
|
||||
{
|
||||
Debug.Log("ant+数据" + string.Join(",", dataPayload));
|
||||
//if (response.messageContents.Length < 11) break;
|
||||
//double value = 0;
|
||||
//for (int i = 0; i < response.messageContents.Length; i++)
|
||||
|
||||
@@ -29,6 +29,7 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
|
||||
UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third/otherContainer/Wechat").gameObject,
|
||||
UnityEngine.EventSystems.EventTriggerType.PointerClick,
|
||||
(b) => goWxLogin());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
+19
-16
@@ -837,23 +837,26 @@ public class UIManager : MonoBehaviour
|
||||
static GameObject earthPanel = null;
|
||||
public static void ShowEarthPanel(double lat = 0, double lon = 0)
|
||||
{
|
||||
if (UIManager.Instance.MainPanel != null)
|
||||
{
|
||||
UIManager.Instance.MainPanel.gameObject.SetActive(false);
|
||||
}
|
||||
if (earthPanel == null)
|
||||
{
|
||||
#if (UNITY_ANDROID || UNITY_IOS)
|
||||
var obj = Resources.Load("UI/Prefab/Panel/Mobile/EarthPanel");
|
||||
#else
|
||||
var obj = Resources.Load("UI/Prefab/Panel/EarthPanel");
|
||||
//if (UIManager.Instance.MainPanel != null)
|
||||
//{
|
||||
// UIManager.Instance.MainPanel.gameObject.SetActive(false);
|
||||
//}
|
||||
#if UNITY_ANDROID
|
||||
Utils.CallAndroidMethod("OpenGlobe");
|
||||
#endif
|
||||
//var root = UIManager.Instance.MainPanel.transform.parent.parent;
|
||||
earthPanel = (GameObject)Instantiate(obj, UIManager.Instance.Root.transform);
|
||||
}
|
||||
stack.Push(null);
|
||||
App.pageName = "earth";
|
||||
earthPanel.GetComponent<EarthController>().Show(lat, lon);
|
||||
// if (earthPanel == null)
|
||||
// {
|
||||
//#if (UNITY_ANDROID || UNITY_IOS)
|
||||
// var obj = Resources.Load("UI/Prefab/Panel/Mobile/EarthPanel");
|
||||
//#else
|
||||
// var obj = Resources.Load("UI/Prefab/Panel/EarthPanel");
|
||||
//#endif
|
||||
// //var root = UIManager.Instance.MainPanel.transform.parent.parent;
|
||||
// earthPanel = (GameObject)Instantiate(obj, UIManager.Instance.Root.transform);
|
||||
// }
|
||||
// stack.Push(null);
|
||||
// App.pageName = "earth";
|
||||
// earthPanel.GetComponent<EarthController>().Show(lat, lon);
|
||||
}
|
||||
|
||||
static Texture2D cursor;
|
||||
|
||||
@@ -225,15 +225,20 @@ namespace Assets.Scripts
|
||||
var a = currentVersion.Split('.');
|
||||
var b = realVersion.Split('.');
|
||||
if (a.Length != 3 || b.Length != 3) return false;
|
||||
//2.1.0 2.0.8
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
var f1 = int.TryParse(a[i], out int ai);
|
||||
var f2 = int.TryParse(b[i], out int bi);
|
||||
if (!f1 || !f2) return false;
|
||||
if (ai < bi)
|
||||
if (ai < bi)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (ai > bi)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user