본문 바로가기
Unity/문제 해결

유니티(룰렛)- 실행이 안되는 상황-"해결"

by 이지훈26 2021. 10. 6.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RouletteController : MonoBehaviour
{
    private float rotSpeed = 0;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        //왼쪽 버튼을 눌렀을 경우
        if(Input.GetMouseButtonDown(0))
        {
            //속도를 10으로 만든다
            this.rotSpeed = 10;
        }

        this.transform.Rotate(0, 0, this.rotSpeed);
    }
}

몇번을 다시 만들어봐도 룰렛 실행이 안됨.


해결책

External Tools에 External Script Editor 다시 지정 한 후 비주얼 스튜디오 다시 재 클릭

다시 깔면서 설정이 안됐었나봄.

 

룰렛돌리기.mp4
0.74MB

'Unity > 문제 해결' 카테고리의 다른 글

Nox 빌드 오류 문제  (0) 2021.12.14
유니티(SwipeCar)- 실행이 안됨-"해결"  (0) 2021.10.06