25 lines
1006 B
C#
25 lines
1006 B
C#
using Code.Infrastructure.Generators;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
namespace Code.Game.OfficeGame.Text
|
|
{
|
|
[CreateAssetMenu(fileName = "AnimatedTextSettings", menuName = "Configs/UI/AnimatedTextSettings")]
|
|
[Config("Configs/UI/AnimatedTextSettings")]
|
|
public class AnimatedTextSettings : ScriptableObject
|
|
{
|
|
[Tooltip("Префаб с компонентами TMP_Text и AnimatedTextView")]
|
|
public AssetReference TextPrefab;
|
|
|
|
[Header("Default Layout")]
|
|
public Vector2 DefaultRectSize = new(4f, 1.5f); // Подберите под масштаб вашего WorldSpace Canvas
|
|
|
|
[Header("Default Animation")] public float DefaultLetterDelay = 0.04f;
|
|
public float FallDistance = 0.8f; // Смещение в локальных единицах TMP_Text
|
|
public float MaxFallRotationAngle = 25f;
|
|
|
|
[Header("Pool")] public int InitialPoolCapacity = 16;
|
|
public int MaxPoolSize = 64;
|
|
}
|
|
} |