2025-11-25 08:19:33 -05:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using MoreMountains.Feedbacks;
|
2026-02-13 09:22:11 -05:00
|
|
|
using SLSUtilities.FeelAssistance;
|
2025-11-25 08:19:33 -05:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
2026-03-20 12:07:44 -04:00
|
|
|
namespace Cielonos.MainGame.Characters.Inventory
|
2025-11-25 08:19:33 -05:00
|
|
|
{
|
|
|
|
|
public class FeedbackSubcontroller : SubcontrollerBase<ItemBase>
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<string, FeedbackUnit> feedbacks;
|
|
|
|
|
public FeedbackUnit this[string feedbackName] => feedbacks.GetValueOrDefault(feedbackName, null);
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
{
|
|
|
|
|
foreach (var feedbackUnit in feedbacks.Values)
|
|
|
|
|
{
|
2025-12-22 18:36:29 -05:00
|
|
|
float timeScaleMultiplier = owner.player.selfTimeSm.TimeScale;
|
|
|
|
|
feedbackUnit.feedback.ExternalTimeScale = timeScaleMultiplier;
|
2025-11-25 08:19:33 -05:00
|
|
|
feedbackUnit.Update();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|