A game about forced loneliness, made by TACStudios
at master 32 lines 834 B view raw
1using System.Reflection; 2 3namespace UnityEditor.ShaderGraph 4{ 5 [Title("Math", "Basic", "Subtract")] 6 class SubtractNode : CodeFunctionNode 7 { 8 public SubtractNode() 9 { 10 name = "Subtract"; 11 synonyms = new string[] { "subtraction", "remove", "minus", "take away" }; 12 } 13 14 protected override MethodInfo GetFunctionToConvert() 15 { 16 return GetType().GetMethod("Unity_Subtract", BindingFlags.Static | BindingFlags.NonPublic); 17 } 18 19 static string Unity_Subtract( 20 [Slot(0, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector A, 21 [Slot(1, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector B, 22 [Slot(2, Binding.None)] out DynamicDimensionVector Out) 23 { 24 return 25@" 26{ 27 Out = A - B; 28} 29"; 30 } 31 } 32}