
It looks like you're new here. If you want to get involved, click one of these buttons!
PLEASE HELP ME IN THIS
using UnityEngine;
public class Enemy : MonoBehaviour
{
public float speed = 10f;
private Transform target;
private int wavepointIndex = 0;
void start()
{
target = Waypoints.points[0];
}
void update ()
{
Vector3 dir = target.position - transform.postion;
transform.Translate(dir.normalized * speed * Time.deltaTime, Space.World);
}
}
Assets\Enemy.cs(17,51): error CS1061: 'Transform' does not contain a definition for 'postion' and no accessible extension method 'postion' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)