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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user