骑行界面&赛事界面调整&设备断开功能
This commit is contained in:
1 parent
467a6f3810
commit
99081519bb
43 files changed
+3658
-697
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Assets.Scripts.Devices
|
||||
{
|
||||
class MobileInfo : MonoBehaviour
|
||||
{
|
||||
Text BatteryText { get; set; }
|
||||
Text TimeText { get; set; }
|
||||
private void Start()
|
||||
{
|
||||
BatteryText = transform.Find("BatteryText").GetComponent<Text>();
|
||||
TimeText = transform.Find("TimeText").GetComponent<Text>();
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
BatteryText.text = $"{Math.Round(SystemInfo.batteryLevel * 100, 0)}%";
|
||||
|
||||
TimeText.text = DateTime.Now.ToString("HH:mm");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43faa658bc3cc36499ad4687b54e8608
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user