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