using UnityEngine; using System.Collections; using System; public class NewBehaviourScript : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame double nurk = 0; void Update () { nurk = nurk + 0.1; //transform.Translate(0.01f, 0, 0); transform.position=new Vector3((float)(7*Math.Sin(nurk)), 0, 0); //Pange kera kõikuma kellapendlina } }