This commit is contained in:
Gerard Gascón 2025-04-24 17:19:36 +02:00
commit 001bb14f16
951 changed files with 270074 additions and 0 deletions

View file

@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyAim : MonoBehaviour{
Transform player;
void Start(){
player = GameObject.FindGameObjectWithTag("Player").transform;
}
// Update is called once per frame
void LateUpdate(){
transform.LookAt(player.position, Vector3.back);
}
}