/// <summary> /// "Set" method for the wind function. /// If newFunction is null, it resets the function to ZeroWind. /// </summary> public static void SetWindFunction(WindFunction newFunction) { if (newFunction == null) { Debug.Log("[FARWind] Attempted to set a null wind function, using ZeroWind instead."); FARWind.func = ZeroWind; } else { Debug.Log("[FARWind] Setting wind function to " + newFunction.Method.Name); FARWind.func = newFunction; } }
/// <summary> /// "Set" method for the wind function. /// If newFunction is null, it resets the function to ZeroWind. /// </summary> public static void SetWindFunction(WindFunction newFunction) { if (newFunction == null) { Util.Log("Attempted to set a null wind function, using ZeroWind instead."); KWPWind.func = ZeroWind; } else { Util.Log("Setting wind function to " + newFunction.Method.Name); KWPWind.func = newFunction; } }
/// <summary> /// "Set" method for the wind function. /// If newFunction is null, it resets the function to ZeroWind. /// </summary> public static void SetWindFunction(WindFunction newFunction) { if (newFunction == null) { Debug.Log("[FARWind] Attempted to set a null wind function, using ZeroWind instead."); FARWind.func = ZeroWind; } else { Debug.Log("[FARWind] Setting wind function to " + newFunction.Method.Name); FARWind.func = newFunction; } }