6c84f865d8
1. 휴대폰에서 실시가능하도록 조이스틱 및 버튼 입력 2. 콜라이더 및 트리거 구조 변경 3. 로테이션 단계이상함 감지 - 수정 예정
22 lines
331 B
C#
22 lines
331 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Gun_rotation : MonoBehaviour
|
|
{
|
|
public float RotateSpeed = 25.0f;
|
|
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
transform.Rotate(0, RotateSpeed * Time.deltaTime, 0);
|
|
}
|
|
}
|