Now, it's really cool that we have a player, but it'll get really boring if all we can do is move around and shoot some lasers in the dark. Next, we'll introduce some simple enemies that will move toward the player that we'll be able to shoot later. Perform the following steps:
Assetsfolder; move the
enemy.pngfile into our
MoveTowardsPlayer. Go to
MonoDevelopand use the following code:
using UnityEngine; using System.Collections; ...