2d게임1 [unity] class1_오브젝트배치, 움직임 결과물 추가로 실행해본 것_1 1. Roulette이 아닌, 가운데에 needle이 돌아가도록 하여 룰렛 게임을 구현해 주었다. 2. 화면을 클릭하는 길이에 비례하여 룰렛이 돌아가는 시간도 길어지도록 구현해 주었다. 전체 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; public class cameraControl : MonoBehaviour { float rotSpeed = 0; int onf = 0; float angle = 0; void Start() { } void Update() { if (Input.GetMouseButtonDown(0)) { onf = 1; } if (onf == 1) //마우.. 2021. 7. 22. 이전 1 다음