modify scripts
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using WordsToolkit.Scripts.Settings;
|
||||
|
||||
namespace WordsToolkit.Scripts.GUI.Labels
|
||||
{
|
||||
public class IAPDisabler : MonoBehaviour
|
||||
{
|
||||
private void OnEnable()
|
||||
{
|
||||
var gameSettings = Resources.Load<GameSettings>("Settings/GameSettings");
|
||||
if (gameSettings != null && !gameSettings.enableInApps)
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9c6b14262f434e07ad593f7b28fbfba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user