Wind Zone Wind Pulse Magnitude#
Miscellaneous / Wind Zone / Wind Zone Wind Pulse Magnitude
Description#
Compares the Wind Pulse Magnitude property of Wind Zone component to another value
Parameters#
| Name | Description |
|---|---|
| Wind Zone | |
| Compare | |
| Value |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Wind Zone Wind Pulse Magnitude")]
[Category("Miscellaneous/Wind Zone/Wind Pulse Magnitude")]
[Description("Compares the Wind Pulse Magnitude property of Wind Zone component to another value")]
[Image(typeof(IconWind), ColorTheme.Type.Lime)]
[Keywords("Air, Blow")]
[Parameter("Wind Zone")]
[Parameter("Compare")]
[Parameter("Value")]
[Serializable]
public class GenConditionNumber_WindZone_CheckWindPulseMagnitude : Condition
{
[SerializeField] private GetGameObject m_WindZone = new GetGameObject(
new GenTypeGameObject_WindZone()
);
[SerializeField] private CompareNumber m_Compare = new CompareNumber();
[SerializeField] private GetNumber m_Value = new GetNumber();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Wind Pulse Magnitude");
return $"{this.m_WindZone} {member} {this.m_Compare} {this.m_Value}";
}
protected override bool Run(Args args)
{
WindZone component = this.m_WindZone.Get<WindZone>(args);
if (component == null) return false;
return this.m_Compare.Compare(component.windPulseMagnitude, (float) this.m_Value.Get(args));
}
}
}