HAARFTE/Assets/DemoGame/GameScript/Hotfix/TestZhongLi.cs

31 lines
896 B
C#

using UnityEngine;
namespace ZC
{
public class TestZhongLi : GameObjectBase<TestZhongLi>
{
public override void OnUpdate(float dateTime)
{
base.OnUpdate(dateTime);
Debug.Log("没找到?");
}
public void Update()
{
transform.Rotate(Vector3.up);
// if (SystemInfo.supportsGyroscope)
// {
// var gyro = Input.gyro;
// gyro.enabled = true;
// Debug.Log($"{gyro.rotationRate} , {gyro.attitude}");
// // Camera.main.transform.Rotate(gyro.rotationRate);
// Camera.main.transform.rotation = gyro.attitude;
// Debug.Log($"raw: {Input.compass.rawVector}");
// }
// else
// {
// // Debug.Log("没找到?");
// }
}
}
}