Hi Guys.
I would like to create this.
I said that I am a beginner in C #
can you help me!
thx
Hi Guys.
I would like to create this.
I said that I am a beginner in C #
can you help me!
thx
Well, one way of doing it would be to create a serializable class as a container of sorts, i.e.
[System.Serializable]
public class MyVariables
{
int number;
bool toggle;
}
//And then in any other scripts
public MyVariables myVariables;
and if I want to call a variable how I done ??
[System.Serializable]
public class MySerializable
{
public bool MyVariable = true;
}
public MySerializable Serializable;
void Start () {
MyVariable = false;
}