건설 모드 UI가 클릭되어 건설되지 않는 문제 수정 JMO Asset 위치 조정 Tower, Monster, Creep의 Hit/Destroy FX Prefab 설정 (Template Level) Tower에 체력바 추가 (최초 건설 시, 체력 변경 시 등장) Tower 관련 디버깅 로그 정리 건설 토대의 사이즈가 비정상적인 문제 수정
42 lines
943 B
C#
42 lines
943 B
C#
//--------------------------------------------------------------------------------------------------------------------------------
|
|
// Cartoon FX
|
|
// (c) 2012-2025 Jean Moreno
|
|
//--------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
using UnityEngine;
|
|
|
|
namespace CartoonFX
|
|
{
|
|
public class CFXR_Demo_Translate : MonoBehaviour
|
|
{
|
|
public Vector3 direction = new Vector3(0,1,0);
|
|
public bool randomRotation;
|
|
|
|
|
|
bool initialized;
|
|
Vector3 initialPosition;
|
|
|
|
void Awake()
|
|
{
|
|
if (!initialized)
|
|
{
|
|
initialized = true;
|
|
initialPosition = this.transform.position;
|
|
}
|
|
}
|
|
|
|
void OnEnable()
|
|
{
|
|
this.transform.position = initialPosition;
|
|
if (randomRotation)
|
|
{
|
|
this.transform.eulerAngles = Vector3.Lerp(Vector3.zero, Vector3.up * 360, Random.value);
|
|
}
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
this.transform.Translate(direction * Time.deltaTime);
|
|
}
|
|
}
|
|
} |