32 lines
746 B
C#
32 lines
746 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PasswordCatcher : MonoBehaviour
|
|
{
|
|
CanvasGroup canvasGroup;
|
|
|
|
bool passwordForSettings;
|
|
private void Start()
|
|
{
|
|
canvasGroup.alpha = 0;
|
|
passwordForSettings = SettingsManager.GetBool("PasswordOnSettings", false);
|
|
SettingsManager.OnSettingsChanged.AddListener(ApplySettings);
|
|
}
|
|
|
|
|
|
void ApplySettings()
|
|
{
|
|
if (NeedToSetPassword())
|
|
{
|
|
//состояние зайти в установку пароля
|
|
}
|
|
}
|
|
|
|
bool NeedToSetPassword()
|
|
{
|
|
bool passwordForSettingsNewValue = SettingsManager.GetBool("PasswordOnSettings", false);
|
|
return false;
|
|
}
|
|
}
|