翻译所有的注释
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* ModelController
|
||||
*
|
||||
* 旋转、平移和缩放对象
|
||||
@@ -40,7 +40,7 @@ namespace Kirurobo
|
||||
public Vector2 maximumAngles = new Vector2(90f, 360f);
|
||||
|
||||
[Tooltip("Restrict to move out from screen")]
|
||||
public bool confineTranslation = true; // 並進移動をウィンドウ(Screen)の範囲に制限するか
|
||||
public bool confineTranslation = true; // 是否将位移限制在窗口(屏幕)范围内
|
||||
|
||||
[Tooltip("Default is the parent transform")]
|
||||
public Transform centerTransform; // 回転中心
|
||||
@@ -69,7 +69,7 @@ namespace Kirurobo
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
// 回転中心を独自に作成していれば、削除
|
||||
// 如果旋转中心是独立创建的,则删除
|
||||
if (centerObject) GameObject.Destroy(centerObject);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Kirurobo
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 必要なオブジェクトを取得・準備
|
||||
/// 获取并准备所需对象
|
||||
/// </summary>
|
||||
internal void Initialize()
|
||||
{
|
||||
@@ -106,8 +106,8 @@ namespace Kirurobo
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初期位置・姿勢の設定
|
||||
/// 対象となるオブジェクトがそろった後で実行する
|
||||
/// 设置初始位置和姿态
|
||||
/// 在目标对象就绪后执行
|
||||
/// </summary>
|
||||
internal void SetupTransform()
|
||||
{
|
||||
@@ -160,16 +160,16 @@ namespace Kirurobo
|
||||
mousePos = Vector3.Max(Vector3.Min(mousePos, screenMax), Vector3.zero);
|
||||
}
|
||||
|
||||
lastMousePosition = mousePos; // ドラッグ開始時にはリセット
|
||||
lastMousePosition = mousePos; // 拖动开始时重置
|
||||
}
|
||||
}
|
||||
else if (InputProxy.GetMouseButtonDown(1))
|
||||
{
|
||||
// 右ボタン(1)ドラッグでは回転を行う
|
||||
// 右键(1)拖动时进行旋转
|
||||
if (dragState == DragState.None && IsHit(mousePos))
|
||||
{
|
||||
dragState = DragState.Rotating;
|
||||
lastMousePosition = mousePos; // ドラッグ開始時にはリセット
|
||||
lastMousePosition = mousePos; // 拖动开始时重置
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ namespace Kirurobo
|
||||
}
|
||||
else
|
||||
{
|
||||
// ボタンが離されていれば並進は終了
|
||||
// 如果按钮已松开则结束位移
|
||||
dragState = DragState.None;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user