I’m new to unity and I’m not sure if this is possible but can you do something like this
public var result : float;
Calculate(5,3)
function Calculate () {
the first number imputed - the second number imputed = result; }
So I can input any 2 numbers in a calculate function and the result variable will equal the first number imputed minus the second number imputed. So in the example above the result would equal 2.
I know this example has no real purpose, I just want to know if something like this is possible.