As I refer the int if you do not let me put “,” and there are":"
How is the variable declared? Is it a variable in the Save method (intellisense is blocking is) or a class variable?
is a public static void only the scipt isnt static
public class MyClass {
int myInteger = 0;
public static void Save()
{
// myInteger (reference type) cannot be used
// within a static method because the class is not instantiated
}
}
He problem is that to be able to save game save values have to be static so they have to be inside the void so I can not get them out and when I reference them I do not know how to put the “,” because it tells me that it’s not going