Unity; Random Object Movement [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I am making a robot battling game where I want the enemy to randomly move and then sometimes travel towards the enemy. Code that I want the movement to be in. else if (avoid == false) { transform.LookAt(target); transform.Translate(Vector3.forward * Time.deltaTime * movementSpeed)