using UnityEngine; namespace Fungus { /// /// Negate a float /// [CommandInfo("Math", "Negate", "Negate a float")] [AddComponentMenu("")] public class Neg : BaseUnaryMathCommand { public override void OnEnter() { outValue.Value = -(inValue.Value); Continue(); } public override string GetSummary() { return "Negate"; } } }