public override void Configure()
        {
            base.Configure();

            port = OptionsOverride.Get("Web Socket Port", port);

            Application.runInBackground = true;
        }
Esempio n. 2
0
        void LoadQualitySettings()
        {
            var id = OptionsOverride.Get("Quality", "Ultra").ToLower();

            var index = Array.FindIndex(QualitySettings.names, x => x.ToLower().Contains(id));

            if (index < 0)
            {
                Debug.LogError($"Quality Level: {id} Not Found");
                return;
            }

            QualitySettings.SetQualityLevel(index);
        }
Esempio n. 3
0
        protected virtual void GetAddresss()
        {
            Address = LocalAddress.Get();

            try
            {
                var ID = "IP Address";

                if (OptionsOverride.Contains(ID))
                {
                    var text = OptionsOverride.Get <string>(ID);

                    Address = IPAddress.Parse(text);
                }
            }
            catch (Exception)
            {
                Debug.LogError("Error when getting IP Address, Using Local Address instead");
            };
        }