4
0
This repository has been archived on 2023-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
TremendousTaxi/game/Assets/Scripts/Pfeil.cs

15 lines
250 B
C#
Raw Permalink Normal View History

2022-09-24 19:46:52 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pfeil : MonoBehaviour
{
2022-09-24 20:55:53 +02:00
public Transform target;
2022-09-24 19:46:52 +02:00
// Update is called once per frame
void Update()
{
2022-09-24 20:55:53 +02:00
transform.LookAt(target);
2022-09-24 19:46:52 +02:00
}
}