using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace TheZone { public static class unitTable : MonoBehaviour { public static string UnitName; public static class Freedom { public static class Grunt { unitTable.UnitName; } } } }
The "UnitName" being called under the "Grunt" class is not valid. What am I doing wrong?
The last time I had a similar problem which was accessing public variables through library's and you guys said to add "Static" which worked, but its not working now that I am trying to access it through a namespace and not a library.
I know that this a newbie question but I forgot alot after being so empty with my programming.