I seem to be running into a wall here in using variables across Inline Function instances.
A simple test:
Command 1 : calls Inline function :
public class VAInline
{
public void main()
{
int x = 4321;
}
}
Command 2 calls a different inline function :
public class VAInline
{
public void main()
{
VA.SetInt("TestVar321", x);
}
}
Ends with error that "x" does not exist in the current context.
Do I need to write my code as a separate Assembly, and reference it? I have tested with the "retain instance" checked, but still run into this error. I have no double I am overlooking something, but can't seem to find the answer in the forums.
As a side (or potentially related) issues. I am a little confused on how I can be running 2 inline functions, both with a public void main() signature, without causing a error of multiple entry points. I assume the "main()" is not really main, but just instantiates a new method under the "VAInline" Class. Or more specifically executes it's code within that class.
Trying to create a new method under the VAINLINE { Main() { that I can call from another instance is also unsuccessful.
Where am I going wrong?