Files
Cielonos/Assets/Scripts/MainGame/Characters/Base/Subcontrollers/FeedbackSubcontroller.cs

24 lines
766 B
C#
Raw Normal View History

2025-11-25 08:19:33 -05:00
using System.Collections.Generic;
using SLSFramework.FeelAssistance;
using UnityEngine;
namespace Cielonos.MainGame.Characters
{
public class FeedbackSubcontroller : SubcontrollerBase<CharacterBase>
{
public Dictionary<string, FeedbackUnit> feedbacks;
public FeedbackUnit this[string feedbackName] => feedbacks.GetValueOrDefault(feedbackName, null);
private void Update()
{
2026-01-03 18:19:39 -05:00
if (feedbacks == null) return;
2025-11-25 08:19:33 -05:00
foreach (var feedbackUnit in feedbacks.Values)
{
2025-12-22 18:36:29 -05:00
float timeScaleMultiplier = owner.selfTimeSm.TimeScale;
feedbackUnit.feedback.ExternalTimeScale = timeScaleMultiplier;
2025-11-25 08:19:33 -05:00
feedbackUnit.Update();
}
}
}
}