- Assets/External 하위 샘플 및 서드파티 에셋 파일의 실행 비트 변경을 별도 커밋으로 분리 - PolygonGeneric, SidekickCharacters, Synty 도구 자산 전반의 줄바꿈 및 재직렬화 차이를 그대로 보존 - 프로젝트 고유 로직 변경과 분리해 이후 히스토리에서 외부 에셋 노이즈 범위를 식별하기 쉽게 정리
36 lines
773 B
C#
Executable File
36 lines
773 B
C#
Executable File
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Generic_SimpleRotate : MonoBehaviour
|
|
{
|
|
|
|
public bool rotX;
|
|
public float rotXSpeed = 50f;
|
|
public bool rotY;
|
|
public float rotYSpeed = 50f;
|
|
public bool rotZ;
|
|
public float rotZSpeed = 50f;
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (rotX == true)
|
|
{
|
|
transform.Rotate(Vector3.left * Time.deltaTime * rotXSpeed);
|
|
}
|
|
if (rotY == true)
|
|
{
|
|
transform.Rotate(Vector3.up * Time.deltaTime * rotYSpeed);
|
|
}
|
|
|
|
if (rotZ == true)
|
|
{
|
|
transform.Rotate(Vector3.back * Time.deltaTime * rotZSpeed);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|