unityzgy/.svn/pristine/14/14bfc798ef00ffefa29e353ee01240b575614a17.svn-base
ayuan9957 bf12e02276 feat: 多语言本地化系统 - 支持中/英/法/俄实时切换
- LocalizationManager: 新增翻译表(SetFormatted/SetDuration/LocalizeOperateMsg)
- LoginPanel: InputField placeholder本地化、字体颜色保持
- HistoryPanel: 用时数据本地化、placeholder本地化
- RecordDetailPanel: 操作详情消息本地化(LanguageChanged重建)
- AppraiseWindowBase: 评价等级本地化、操作消息重建
- EditorAppraiser: 所有评估消息改用InjectOperateMsgLocalized
- StudentOperateRecorder: 新增InjectOperateMsgLocalized方法
- LocalizationLanguageTestBar: 单例模式、ScreenSpaceOverlay筛选
- 字体切换时保留颜色和verticalOverflow
2026-07-16 10:05:59 +08:00

37 lines
1.2 KiB
Plaintext

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class FreeFall_Controller_Example_QR2 : MonoBehaviour
{
QuickRope2 rope;
void Start()
{
rope = QuickRope2.Create(Vector3.zero, new Vector3(0, -10, 0), BasicRopeTypes.Mesh);
rope.enablePhysics = true;
rope.enableRopeController = true;
rope.ApplyRopeSettings();
rope.GetComponent<Rigidbody>().isKinematic = true;
}
void Update ()
{
if (Input.GetKeyDown(KeyCode.Space))
{
rope.FreeFallMode = (rope.FreeFallMode == false);
}
}
void OnGUI()
{
GUI.Label(new Rect(10, 10, 300, 30), "Press SPACE to toggle freefall mode!");
GUI.Label(new Rect(10, 40, 300, 30), "Press ARROW UP to shorten rope!");
GUI.Label(new Rect(10, 70, 300, 30), "Press ARROW DOWN to lengthen rope!");
GUI.Label(new Rect(10, 110, 150, 30), "FreeFall: " + rope.FreeFallMode);
GUI.Label(new Rect(10, 140, 150, 30), "Max Length: " + rope.maxRopeLength.ToString("00"));
rope.maxRopeLength = GUI.HorizontalSlider(new Rect(150, 150, 150, 30), rope.maxRopeLength, 5, 50);
}
}