Hy guys i have a problem in my script i have initialized a variable but i don’t se it on the inspector?? why??
public class MenuMenager : MonoBehaviour {
[System.Serializable]
public class robot{
public GameObject currentbase;
public GameObject currentwhell;
public GameObject currentweapon;
public GameObject base1 = null;
public GameObject base2 = null;
public GameObject base3 = null;
public GameObject weapon1 = null;
public GameObject weapon2 = null;
public GameObject weapon3 = null;
public GameObject whell1 = null;
public GameObject whell2 = null;
public GameObject whell3 = null;
public string robotname = "default"; //nome robot
public string rbase = "default"; //base usata
public string rweapon = "default"; // weapon usata
public string rwhell = "default"; // rotelle
}
public robot Robot;
}
i need to see in the inspecotr the variable base1 , base 2 and 3 help