tutaradical.blogg.se

Unity space shooter
Unity space shooter












unity space shooter

= new Vector3 (newManeuver, 0.0f, currentSpeed) Yield return new WaitForSeconds ( (maneuverWait.x, maneuverWait.y)) įloat newManeuver = (, targetManeuver, smoothing * ) Yield return new WaitForSeconds ( (maneuverTime.x, maneuverTime.y)) Yield return new WaitForSeconds ( (startWait.x, startWait.y)) IEnumerator Evade ()// this randomly moves left and right and keeps the enemy within screen Public class Enemy_EvasiveManeuver1 : MonoBehaviour

unity space shooter

This is the basic Script that moves the ship In current script enemy (just like in any tower defence game) moves randomly shot randomly, and moves along z axes till it reaches end of the screen, where if not shoot by player get destroyed.

unity space shooter

which moves Enemies, and make them shot.īut I would like a couple of variation with improved AI. I need someone to create more advance Enemy Ai for space shooter.














Unity space shooter