Files
PGiZ1/Assets/Resources/Code/UI/MainMenuController.cs
T
2026-01-26 23:19:40 +03:00

23 lines
528 B
C#

using DG.Tweening;
using TMPro;
using UnityEngine;
namespace Code.UI
{
public class MainMenuController : MonoBehaviour
{
[SerializeField] private TMP_Text logotype;
private void Start()
{
AnimateLogo();
}
private void AnimateLogo()
{
logotype.transform.DOShakePosition(3, new Vector3(5, 5, 0)).SetLoops(-1, LoopType.Yoyo);
logotype.transform.DOShakeScale(7, new Vector3(0.5f, 1.2f, 0)).SetLoops(-1, LoopType.Yoyo);
}
}
}