예제 #1
0
 /// <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;
     }
 }
예제 #2
0
 /// <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;
     }
 }
예제 #3
0
 /// <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;
     }
 }