sega 8a6d23b77d Реорг Scripts
Разделено на 4 модуля
- Menu
- Gameplay
- Settings
- Common
2026-07-15 10:49:55 +03:00

21 lines
429 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SinMoverY : MonoBehaviour
{
Vector3 startPosition;
public float amplitude = 1;
public float speed = 1;
void Start()
{
startPosition = transform.localPosition;
}
void Update()
{
transform.localPosition = startPosition + Vector3.up * amplitude * Mathf.Sin(Time.time * speed);
}
}