Animated MiSide like text

This commit is contained in:
ThomasCharester committed 2026-11-21 00:23:46 +03:00
1 parent 3678d039e3
commit 39df8b3d76
769 files changed
+263431 -91342

No files matched your search

@@ -1,3 +1,6 @@
using Code.Game.OfficeGame.Text;
using Cysharp.Threading.Tasks;
using Reflex.Attributes;
using TinyGoose.Tremble;
using UnityEngine;
@@ -6,11 +9,34 @@ namespace Code.Game.OfficeGame.Entities
[PrefabEntity]
public class TestInteractableEntity : InteractableEntity
{
[SerializeField] private string testText = "Interaction";
[SerializeField] private string testText = "Interaction";
[SerializeField] private Transform textPosition;
private UniTask _textHandle;
private IAnimatedTextService _animatedTextService;
[Inject]
private void Construct(IAnimatedTextService animatedTextService)
{
_animatedTextService = animatedTextService;
}
public override void Interact()
{
Debug.Log(testText);
if (_textHandle.Status != UniTaskStatus.Pending)
_textHandle = _animatedTextService.CreateAnimatedText(
testText,
1,
1,
3,
Color.mediumAquamarine,
textPosition.position,
textPosition.rotation,
TextAppearType.Pop,
TextDisappearType.Shrink,
behaviourType: TextBehaviourType.RotateHorizontal);
}
}
}