Files
Cielonos/Assets/Scripts/MainGame/Characters/Base/Subcontrollers/Reaction/ReactionSubcontroller.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

36 lines
1.2 KiB
C#

using System.Collections.Generic;
using MoreMountains.Feedbacks;
using SLSFramework.General;
using UnityEngine;
namespace Cielonos.MainGame.Characters
{
public class ReactionSubcontroller : SubcontrollerBase<CharacterBase>
{
public Dictionary<BreakthroughType, CompoundVariable<bool>> breakthroughResistances;
public DodgeSubmodule dodgeSm;
public BlockSubmodule blockSm;
public override void Initialize()
{
base.Initialize();
breakthroughResistances = new Dictionary<BreakthroughType, CompoundVariable<bool>>()
{
{ BreakthroughType.None, new CompoundVariable<bool>(true) },
{ BreakthroughType.Weak, new CompoundVariable<bool>(true) },
{ BreakthroughType.Medium, new CompoundVariable<bool>(true) },
{ BreakthroughType.Heavy, new CompoundVariable<bool>(false) },
{ BreakthroughType.SuperHeavy, new CompoundVariable<bool>(false) }
};
dodgeSm = new DodgeSubmodule(this);
blockSm = new BlockSubmodule(this);
}
public void Update()
{
dodgeSm.Update();
blockSm.Update();
}
}
}