18 lines
406 B
C#
18 lines
406 B
C#
using UnityEngine;
|
|
|
|
[ExecuteAlways]
|
|
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()
|
|
{
|
|
transform.localPosition = transform.localPosition.normalized * 20f;
|
|
transform.forward = transform.position;
|
|
}
|
|
}
|