Signed-off-by: XgC2961 <2961904938@qq.com>
|
|
@ -19,14 +19,14 @@ public class RotateAndScale : MonoBehaviour
|
||||||
|
|
||||||
private void HandleRotation()
|
private void HandleRotation()
|
||||||
{
|
{
|
||||||
// °´×¡ÓÒ¼ü¿ªÊ¼Ðýת
|
// °´×¡×ó¼ü¿ªÊ¼Ðýת
|
||||||
if (Input.GetMouseButtonDown(1))
|
if (Input.GetMouseButtonDown(0))
|
||||||
{
|
{
|
||||||
isRotating = true;
|
isRotating = true;
|
||||||
lastMouseX = Input.mousePosition.x;
|
lastMouseX = Input.mousePosition.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Input.GetMouseButtonUp(1))
|
if (Input.GetMouseButtonUp(0))
|
||||||
{
|
{
|
||||||
isRotating = false;
|
isRotating = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 13 KiB |