定义要使用的风区的类型(Spherical 或 Directional)。
// Creates a Directional Wind Zone.
using UnityEngine;
public class ExampleScript : MonoBehaviour
{
void Start()
{
var wind = gameObject.AddComponent<WindZone>();
wind.mode = WindZoneMode.Directional;
}
}