I’m trying to create a recovery script. Here are the relevant parts:
{
InvokeRepeating(“Recover”, 1.0f, 0.4f);
}
{
if (magic.CurrentVal < 100)
{
magic.CurrentVal += 1;
}
}
It recovers too quickly. When I reduce the recovery value, it works better, but it increases in speed and quickly stops working properly.