- LocalizationManager: 新增翻译表(SetFormatted/SetDuration/LocalizeOperateMsg) - LoginPanel: InputField placeholder本地化、字体颜色保持 - HistoryPanel: 用时数据本地化、placeholder本地化 - RecordDetailPanel: 操作详情消息本地化(LanguageChanged重建) - AppraiseWindowBase: 评价等级本地化、操作消息重建 - EditorAppraiser: 所有评估消息改用InjectOperateMsgLocalized - StudentOperateRecorder: 新增InjectOperateMsgLocalized方法 - LocalizationLanguageTestBar: 单例模式、ScreenSpaceOverlay筛选 - 字体切换时保留颜色和verticalOverflow
24 lines
695 B
C#
24 lines
695 B
C#
namespace VRTK.Examples
|
|
{
|
|
using UnityEngine;
|
|
|
|
public class Remote_Beam : MonoBehaviour
|
|
{
|
|
private Vector2 touchAxis;
|
|
private float rotationSpeed = 180f;
|
|
private float currentYaw;
|
|
private float currentPitch;
|
|
|
|
public void SetTouchAxis(Vector2 data)
|
|
{
|
|
touchAxis = data;
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
currentYaw += touchAxis.y * rotationSpeed * Time.deltaTime;
|
|
currentPitch += touchAxis.x * rotationSpeed * Time.deltaTime;
|
|
transform.localRotation = Quaternion.AngleAxis(currentPitch, Vector3.up) * Quaternion.AngleAxis(currentYaw, Vector3.left);
|
|
}
|
|
}
|
|
} |