using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Roullet : MonoBehaviour
{
    float rotSpeed;

    void Update()
    {
        // 마우스를 클릭하면 지정 속도로 룰렛이 돈다.
        if(Input.GetMouseButtonUp(0))
        {
            this.rotSpeed = 5000; // 버튼을 누르면 작동
        }
            transform.Rotate(0, 0, rotSpeed);

        // 속도를 줄인다.
        this.rotSpeed *= 0.9f;
    }
}

'└▶연습' 카테고리의 다른 글

고양이 점프  (6) 2024.09.16
고양이 화살 피하기 3단계  (6) 2024.09.16
고양이 화살 피하기 2단계  (1) 2024.09.16
고양이 화살 피하기 1단계  (2) 2024.09.15
자동차 스와이프  (0) 2024.09.15

+ Recent posts