/// Sets a Boolean, Integer, Float or String variable to a new value using a simple arithmetic operation. The value can be a constant or reference another variable of the same type.
/// </summary>
[CommandInfo("Variable",
"Set Variable",
[CommandInfo("Variable",
"Set Variable",
"Sets a Boolean, Integer, Float or String variable to a new value using a simple arithmetic operation. The value can be a constant or reference another variable of the same type.")]
[AddComponentMenu("")]
publicclassSetVariable:Command
publicclassSetVariable:Command
{
[Tooltip("The variable whos value will be set")]
[VariableProperty(typeof(BooleanVariable),
typeof(IntegerVariable),
typeof(FloatVariable),
typeof(IntegerVariable),
typeof(FloatVariable),
typeof(StringVariable),
typeof(AnimatorVariable),
typeof(AudioSourceVariable),
typeof(ColorVariable),
typeof(GameObjectVariable))]
typeof(GameObjectVariable),
typeof(MaterialVariable))]
[SerializeField]protectedVariablevariable;
[Tooltip("The type of math operation to be performed")]