LazyBot/Assets/Scripts/Entity/EntityData.cs
/// <summary>
/// Updates value based on regenerate rate and deltaTime.
/// </summary>
/// <param name="deltaTime">Time elapsed from previous frame.</param>
/// <returns>Is regenerate was successful.</returns>
Updates value based on regenerate rate and deltaTime.
Updates value based on regenerate rate and deltaTime .
public virtual bool Regenerate(float deltaTime = 1.0f)
        {
            if (!_isRegenerate) return false;
            Change(_valueRegenerateRate * deltaTime);
            return true;
        }
public virtual bool Regenerate ( float deltaTime = 1.0f ) { if ( ! _isRegenerate ) return false ; Change ( _valueRegenerateRate * deltaTime ) ; return true ; }
Updates value based on regenerate rate and deltaTime.
Updates value based on regenerate rate and deltaTime .
None
deltaTime
float
Time elapsed from previous frame.
Time elapsed from previous frame .