From ec3222e6030dca4d0df19a8d86efd5a1cc91a326 Mon Sep 17 00:00:00 2001 From: Tamas Szucs Date: Tue, 22 Mar 2016 00:04:52 +0100 Subject: [PATCH] Fixed compiler error --- Assets/UtilityKit/MathHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UtilityKit/MathHelpers.cs b/Assets/UtilityKit/MathHelpers.cs index c8eaf43..563cdc5 100644 --- a/Assets/UtilityKit/MathHelpers.cs +++ b/Assets/UtilityKit/MathHelpers.cs @@ -52,7 +52,7 @@ public static float map( float value, float leftMin, float leftMax, float rightM /// The to nearest. /// Value. /// Round to nearest. - public float roundToNearest( float value, float roundToNearest ) + public static float roundToNearest( float value, float roundToNearest ) { return Mathf.Round( value / roundToNearest ) * roundToNearest; }