23 lines
528 B
C#
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);
|
|
}
|
|
}
|
|
}
|