using System.Collections; using System.Collections.Generic; using UnityEngine; public class Liikumine2 : MonoBehaviour { private float nurk=0; private Vector3 suurendus=new Vector3(1, 1, 1); void Start() { } void Update(){ nurk+=Time.deltaTime; this.transform.localScale=suurendus*(1+0.5f*Mathf.Sin(nurk)); this.transform.Rotate(0.5f, 0, 0, Space.Self); //Katsetage moodust, et vaid ühe telje suunas muutub suurus } }