Can anyone help me with this, i am trying to make this script so that the second class (Mobile Platform) only appears in the inspector when the boolean (Mobile) is activated on the (Platform) class.
public class Splash : MonoBehaviour {
public static bool IsMobile;
public static bool IsConsole;
public static bool IsDesktop;
public static bool IsGooglePlay;
public static bool IsAmazon;
public static bool IsSamsung;
public static bool IsThirdParty;
[Space (10)]
public Platform SetGlobalPlatform;
[Space (10)]
public MobilePlatform SetMobilePlatform;
[Serializable]
public class Platform : System.Object {
public bool Mobile;
public bool Console;
public bool Desktop;
}
[Serializable]
public class MobilePlatform : System.Object {
public bool GooglePlay;
public bool Amazon;
public bool Samsung;
public bool ThirdParty;
}
void Awake (){
IsMobile = SetGlobalPlatform.Mobile;
IsConsole = SetGlobalPlatform.Console;
IsDesktop = SetGlobalPlatform.Desktop;
IsGooglePlay = SetMobilePlatform.GooglePlay;
IsAmazon = SetMobilePlatform.Amazon;
IsSamsung = SetMobilePlatform.Samsung;
IsThirdParty = SetMobilePlatform.ThirdParty;
}
}
Any help would be appreciated, thank you.