22 lines
598 B
C#
22 lines
598 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using MoreMountains.Feedbacks;
|
|
using SLSFramework.FeelAssistance;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.Inventory
|
|
{
|
|
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)
|
|
{
|
|
feedbackUnit.Update();
|
|
}
|
|
}
|
|
}
|
|
} |