using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RouletteController : MonoBehaviour
{
public float rotAngle = 0;
public float dampingCoeffient = 3.6f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//만약 왼손을 눌렀다면
if (Input.GetMouseButtonDown(0))
{
Debug.Log("왼쪽 버튼 클릭");
this.rotAngle = 10;
}
this.transform.Rotate(0, 0, rotAngle);
//감쇠 계수를 곱해서 angle을 줄여라
//rotAngle *= dampingCoeffient;
Debug.Log(this.rotAngle);
}
}