
The MobileIdleState is even simpler than the base IdleState because it Inherits all of the base functionality, so all it needs to do is override the CharacterState.MovementSpeedMultiplier to use a Serialized Field:
public class MobileIdleState : IdleState
{
[SerializeField, Range(0, 1)]
[Tooltip("The multiple of the character's regular speed at which they can move while in this state")]
private float _MovementSpeedMultiplier = 1;
public override float MovementSpeedMultiplier => _MovementSpeedMultiplier;
}
This allows the Gobbat enemy to play a single Idle animation like a Maw Flower, but also to move around while doing so.