private GetMaxAcceleration ( bool grounded ) : float | ||
grounded | bool | |
Résultat | float |
float GetMaxAcceleration(bool grounded)
{
// Maximum acceleration on ground and in air
if (grounded)
return movement.maxGroundAcceleration;
else
return movement.maxAirAcceleration;
}