Hello guys! I have a small issue, i need to have some global variables, so i can use them in every script, so ive created a namespace, but i always should use the name of class, is there a way to avoid this?
namespace GlobalVars
{
public class GameObjects
{
public static List<int> planetIDList = new List<int>();
public static List<PlanetNode> planetList = new List<PlanetNode>();
}
}
GameObjects.planetIDList.Add(planetID);
What should i do so i can call just planetIDList without using class name anywhere?