UPDATED TO UNITY 2022.2.15f1

please please please make sure this is opened in the right unity version or it will give you problems :)
This commit is contained in:
slevy14
2023-04-14 13:52:50 -07:00
parent 4b7bb231a9
commit 41374abe80
6 changed files with 37 additions and 21 deletions

View File

@@ -27,4 +27,9 @@ public class EnemyPatrol : MonoBehaviour {
transform.position += new Vector3(movementVector.x, 0, 0) * Time.deltaTime;
}
}
void OnDrawGizmos() {
Gizmos.color = Color.green;
Gizmos.DrawLine(new Vector3(transform.position.x - range, transform.position.y, transform.position.z), new Vector3(transform.position.x + range, transform.position.y, transform.position.z));
}
}