using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ss : MonoBehaviour
{
    Vector3 pos;
    // Start is called before the first frame update
    void Start()
    {
       pos = transform.position; 
    }

    // Update is called once per frame
    void Update()
    {
        transform.position = pos;
        pos.y += Mathf.Cos(Time.realtimeSinceStartup);

        transform.position = pos;
    }
}
