. , ? :
public static class Debugging
{
public static bool ShowFPS = true;
public static bool PlaySound = false;
}
, . , , - if (Debugging.ShowFPS). , (Debugging.ShowFPS = false;).
, , , XML , :
, , - . . 100% , , ifdef :
public static class Debugging
{
#if DEBUG
public static bool ShowFPS = true;
public static bool PlaySound = true;
#else
public static bool ShowFPS = false;
public static bool PlaySound = false;
#endif
}
- ; -)
source
share