Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How do I make a enemy follow me

$
0
0
I am making a fps shooter and I need my enemy to follow me when I am with in a certain range of the enemy this is what I have so far.` using System.Collections; using System.Collections.Generic; using UnityEngine; public class MovetowrdsPlayer : MonoBehaviour { public GameObject Player; public bool Speed; public void Update() { rigidbody.velocity = transform.forward * Speed; } } is this really the way

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>