Beispiel #1
0
        protected void OnEnable()
        {
            _settings = AssetDatabase.LoadAssetAtPath <ClientManagerSettings>("Assets/GotoUdon/Settings/ClientManagerSettings.asset");
            if (_settings == null)
            {
                _settings = CreateInstance <ClientManagerSettings>();
                _settings.Init();
                AssetDatabase.CreateAsset(_settings, "Assets/GotoUdon/Settings/ClientManagerSettings.asset");
                AssetDatabase.SaveAssets();
                AssetDatabase.Refresh();
            }

            _settings.Init();
            _clientsManager = new ClientsManager(_settings);
        }
Beispiel #2
0
 public ClientsManager(ClientManagerSettings settings)
 {
     _settings = settings;
 }