5Y5T3M/Assets/Scripts/Node.cs

19 lines
406 B
C#
Raw Normal View History

2025-09-15 23:01:07 +02:00
using UnityEngine;
2025-09-16 00:08:50 +02:00
[ExecuteAlways]
2025-09-15 23:01:07 +02:00
public class Node : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
2025-09-16 00:08:50 +02:00
transform.localPosition = transform.localPosition.normalized * 20f;
transform.forward = transform.position;
2025-09-15 23:01:07 +02:00
}
}