Files
ft/Client/LocalPackages/TapjoySDK/Runtime/TapjoySettings.cs
2026-06-29 21:18:33 +08:00

83 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace TapjoyUnity.Internal {
public class TapjoySettings : ScriptableObject {
#if !DEBUG
[HideInInspector]
#endif
[SerializeField]
private PlatformSettings androidSettings = new PlatformSettings();
#if !DEBUG
[HideInInspector]
#endif
[SerializeField]
private IosPlatformSettings iosSettings = new IosPlatformSettings();
#if !DEBUG
[HideInInspector]
#endif
[SerializeField]
private bool autoConnectEnabled = true;
#if !DEBUG
[HideInInspector]
#endif
[SerializeField]
private LoggingLevel loggingLevel = LoggingLevel.Error;
private bool dirty = false;
public PlatformSettings AndroidSettings {
get {
return androidSettings;
}
}
public IosPlatformSettings IosSettings {
get {
return iosSettings;
}
}
public bool AutoConnectEnabled {
get {
return autoConnectEnabled;
}
set {
if (autoConnectEnabled != value) {
autoConnectEnabled = value;
dirty = true;
}
}
}
public LoggingLevel LoggingLevel {
get {
return loggingLevel;
}
set {
if (loggingLevel != value) {
loggingLevel = value;
dirty = true;
}
}
}
public bool Dirty {
get {
return dirty || androidSettings.Dirty || iosSettings.Dirty;
}
set {
dirty = value;
androidSettings.Dirty = value;
iosSettings.Dirty = value;
}
}
}
}