Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Stats System/generalStatComponent.cs
Robii Aragon fd87a6ffd5 add ckg
plantilla base para movimiento básico
2026-02-05 05:07:55 -08:00

59 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class generalStatComponent : statType
{
[Header ("Custom Settings")]
[Space]
public int currentStatAmount;
public override void eventToInitializeStat (float newValue)
{
currentStatAmount = (int)newValue;
}
public override void eventToIncreaseStat (float newValue)
{
currentStatAmount += (int)newValue;
}
public override void eventToUseStat (float newValue)
{
currentStatAmount -= (int)newValue;
}
public override void eventToAddAmount (float newValue)
{
currentStatAmount += (int)newValue;
}
public override void eventToInitializeBoolStat (bool newValue)
{
}
public override void eventToActivateBoolStat (bool newValue)
{
}
public override void eventToInitializeStatOnComponent ()
{
}
public override void eventToInitializeBoolStatOnComponent ()
{
}
public override void updateStatAmountWithoutUpdatingStatManager (int statId, float amount)
{
currentStatAmount = (int)amount;
}
}