初始化仓库
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
//------------------------------------------------------------
|
||||
// Game Framework
|
||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
||||
// Homepage: https://gameframework.cn/
|
||||
// Feedback: mailto:ellan@gameframework.cn
|
||||
//------------------------------------------------------------
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityGameFramework.Runtime
|
||||
{
|
||||
public sealed partial class DebuggerComponent : GameFrameworkComponent
|
||||
{
|
||||
private sealed class InputCompassInformationWindow : ScrollableDebuggerWindowBase
|
||||
{
|
||||
protected override void OnDrawScrollableWindow()
|
||||
{
|
||||
GUILayout.Label("<b>Input Compass Information</b>");
|
||||
GUILayout.BeginVertical("box");
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
{
|
||||
if (GUILayout.Button("Enable", GUILayout.Height(30f)))
|
||||
{
|
||||
Input.compass.enabled = true;
|
||||
}
|
||||
if (GUILayout.Button("Disable", GUILayout.Height(30f)))
|
||||
{
|
||||
Input.compass.enabled = false;
|
||||
}
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
DrawItem("Enabled", Input.compass.enabled.ToString());
|
||||
if (Input.compass.enabled)
|
||||
{
|
||||
DrawItem("Heading Accuracy", Input.compass.headingAccuracy.ToString());
|
||||
DrawItem("Magnetic Heading", Input.compass.magneticHeading.ToString());
|
||||
DrawItem("Raw Vector", Input.compass.rawVector.ToString());
|
||||
DrawItem("Timestamp", Input.compass.timestamp.ToString());
|
||||
DrawItem("True Heading", Input.compass.trueHeading.ToString());
|
||||
}
|
||||
}
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user