using UnityEngine; using System.Collections; public class EnemyMovementScript : MonoBehaviour { public float radius = 10f; public float speed = 1f; Vector3 offset; void Start () { offset = transform.position; } void Update () { transform.position = new Vector3( (radius * Mathf.Cos(Time.time * speed)) + offset.x, (radius * Mathf.Sin(Time.time * speed)) + offset.y, offset.z); } }