UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"move enemyai toward player to attack"
public class EnemyTowardsPlayer : MonoBehavior { private EnemyAI _enemyAI; void Start () { this game object. var enemyAI = this.GetComponent<EnemyAI>(); } void Update () { _enemyAI.MoveTowardsPlayer(); } }