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

Make an enemy stop at a radius

$
0
0
So i have this enemy and i want it to stop when i reaches its throwraidus how do i do that void Update() { TargetFinder(); if (CurrentStones > 0) { if (myTarget == null) currentTargetDistance = searchRadius; else Move(myTarget.transform); { if (currentTargetDistance < throwRaidus) { DoThrow(); } } }

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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