DanceSetting.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.Serialization.Formatters.Binary;
  7. using System.Text;
  8. using Dance;
  9. using I2.Loc;
  10. using UnityEngine;
  11. public class DanceSetting : MonoBehaviour
  12. {
  13. private void Awake()
  14. {
  15. this.m_OrijinBgheight = this.m_SettingUIBg.height;
  16. if (!DanceSetting.m_IsFileCheck)
  17. {
  18. Action<string, bool> action = delegate(string file_path, bool binary_ver)
  19. {
  20. float num = -1f;
  21. FileInfo fileInfo = new FileInfo(file_path);
  22. try
  23. {
  24. if (binary_ver)
  25. {
  26. using (FileStream fileStream = new FileStream(file_path, FileMode.Open, FileAccess.Read))
  27. {
  28. BinaryFormatter binaryFormatter = new BinaryFormatter();
  29. string text = (string)binaryFormatter.Deserialize(fileStream);
  30. string text2 = (string)binaryFormatter.Deserialize(fileStream);
  31. float.TryParse(text2.Split(new char[]
  32. {
  33. ':'
  34. })[1], out num);
  35. DanceSetting.Settings = (SettingData)binaryFormatter.Deserialize(fileStream);
  36. fileStream.Close();
  37. }
  38. }
  39. else
  40. {
  41. using (StreamReader streamReader = new StreamReader(fileInfo.OpenRead(), Encoding.UTF8))
  42. {
  43. string text3 = streamReader.ReadLine();
  44. if (text3 == "@Dance_Setting")
  45. {
  46. string s = streamReader.ReadLine().Split(new char[]
  47. {
  48. ':'
  49. })[1];
  50. float.TryParse(s, out num);
  51. text3 = streamReader.ReadLine();
  52. }
  53. DanceSetting.Settings = JsonUtility.FromJson<SettingData>(text3);
  54. streamReader.Close();
  55. }
  56. }
  57. }
  58. catch (Exception ex)
  59. {
  60. if (num > 0f)
  61. {
  62. if (num == 1f)
  63. {
  64. Debug.Log("2017/11/22以前の設定データです");
  65. }
  66. }
  67. else
  68. {
  69. DanceSetting.Settings = new SettingData();
  70. File.Delete(file_path);
  71. Debug.LogWarning("ダンス設定読み込みに失敗したので初期化します。エラー箇所:" + ex.StackTrace);
  72. }
  73. }
  74. };
  75. string fullPath = Path.GetFullPath(".\\dance_setting_br.dat");
  76. DanceSetting.m_IsFileExist = File.Exists(fullPath);
  77. if (DanceSetting.m_IsFileExist)
  78. {
  79. action(fullPath, true);
  80. }
  81. else
  82. {
  83. string fullPath2 = Path.GetFullPath(".\\dance_setting.set");
  84. string fullPath3 = Path.GetFullPath(".\\dance_setting.dat");
  85. if (File.Exists(fullPath2))
  86. {
  87. action(fullPath2, false);
  88. File.Delete(fullPath2);
  89. }
  90. else if (File.Exists(fullPath3))
  91. {
  92. action(fullPath3, false);
  93. File.Delete(fullPath3);
  94. }
  95. }
  96. DanceSetting.m_IsFileCheck = true;
  97. }
  98. }
  99. private void Start()
  100. {
  101. EventDelegate.Callback callback = delegate()
  102. {
  103. GameObject gameObject = GameObject.Find("Drop-down List");
  104. if (gameObject)
  105. {
  106. int width = gameObject.GetComponentInChildren<UISprite>().width;
  107. gameObject.transform.position = UIButton.current.transform.TransformPoint(Vector3.down * this.m_PopUpOffset + Vector3.left * (float)width / 2f);
  108. }
  109. };
  110. IEnumerator enumerator = this.m_ButtonGroup.GetEnumerator();
  111. try
  112. {
  113. while (enumerator.MoveNext())
  114. {
  115. object obj = enumerator.Current;
  116. Transform transform = (Transform)obj;
  117. UIPopupList componentInChildren = transform.GetComponentInChildren<UIPopupList>();
  118. if (componentInChildren)
  119. {
  120. DanceSetting.NeedData needData = new DanceSetting.NeedData();
  121. if (transform.Find("Label"))
  122. {
  123. needData.Label = transform.Find("Label").GetComponent<UILabel>();
  124. needData.localize = needData.Label.GetComponent<Localize>();
  125. }
  126. needData.Button = transform.GetComponentInChildren<UIButton>();
  127. EventDelegate.Add(needData.Button.onClick, callback);
  128. needData.Collider = transform.GetComponentInChildren<BoxCollider>();
  129. this.m_SettingUIList.Add(componentInChildren, needData);
  130. EventDelegate.Add(componentInChildren.onChange, new EventDelegate.Callback(this.ValueSetting));
  131. this.SetUIValue(componentInChildren);
  132. }
  133. }
  134. }
  135. finally
  136. {
  137. IDisposable disposable;
  138. if ((disposable = (enumerator as IDisposable)) != null)
  139. {
  140. disposable.Dispose();
  141. }
  142. }
  143. }
  144. private void SetUIValue(UIPopupList list)
  145. {
  146. DanceSetting.UIInspectorSetting uiinspectorSetting = this.m_SettingList.SingleOrDefault((DanceSetting.UIInspectorSetting e) => e.PopUpUI == list);
  147. if (uiinspectorSetting == null)
  148. {
  149. return;
  150. }
  151. foreach (string text in list.items)
  152. {
  153. bool flag = false;
  154. bool flag2 = false;
  155. string text2 = text.Replace("\r", string.Empty);
  156. string text3 = text2;
  157. string[] array = text2.Split(new char[]
  158. {
  159. '/'
  160. });
  161. if (array != null && 1 < array.Length)
  162. {
  163. text3 = array[array.Length - 1];
  164. flag2 = true;
  165. }
  166. switch (uiinspectorSetting.MyType)
  167. {
  168. case DanceSetting.SettingType.Product:
  169. flag = this.IsProductMatch(text3);
  170. break;
  171. case DanceSetting.SettingType.Audience:
  172. flag = this.IsAudienceMatch(text3);
  173. break;
  174. case DanceSetting.SettingType.DepthofField:
  175. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsDepthOfFieldOn);
  176. break;
  177. case DanceSetting.SettingType.SePlay:
  178. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsSEPlay);
  179. break;
  180. case DanceSetting.SettingType.Voltage:
  181. flag = this.IsVoltageMatch(text3);
  182. break;
  183. case DanceSetting.SettingType.BlackBg:
  184. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsblackBGon);
  185. break;
  186. case DanceSetting.SettingType.NoteEffect:
  187. flag = this.IsEffectLigthtMatch(text3);
  188. break;
  189. case DanceSetting.SettingType.NoteTiming:
  190. flag = this.IsTimingMatch(text3);
  191. break;
  192. case DanceSetting.SettingType.JudgeTiming:
  193. flag = this.IsJudgeTimingMatch(text3);
  194. break;
  195. case DanceSetting.SettingType.FpsCam:
  196. flag = this.IsSettingOn(text3, DanceSetting.Settings.FPSCamMode);
  197. break;
  198. case DanceSetting.SettingType.Cutin:
  199. flag = this.IsCutinMatch(text3);
  200. break;
  201. case DanceSetting.SettingType.Undress:
  202. flag = this.IsUndressFaceMatch(text3);
  203. break;
  204. }
  205. if (flag)
  206. {
  207. list.value = ((!flag2) ? text3 : text2);
  208. break;
  209. }
  210. }
  211. }
  212. private bool IsProductMatch(string text)
  213. {
  214. bool result = false;
  215. switch (DanceSetting.Settings.Product)
  216. {
  217. case Product_Mgr.ProductRank.Low:
  218. result = (text == "下位");
  219. break;
  220. case Product_Mgr.ProductRank.Special:
  221. result = (text == "上位");
  222. break;
  223. case Product_Mgr.ProductRank.Normal:
  224. result = (text == "通常");
  225. break;
  226. }
  227. return result;
  228. }
  229. private bool IsAudienceMatch(string text)
  230. {
  231. bool result = false;
  232. switch (DanceSetting.Settings.Audience)
  233. {
  234. case Product_Mgr.AudienceState.Few:
  235. result = (text == "小");
  236. break;
  237. case Product_Mgr.AudienceState.Normal:
  238. result = (text == "中");
  239. break;
  240. case Product_Mgr.AudienceState.Many:
  241. result = (text == "大");
  242. break;
  243. }
  244. return result;
  245. }
  246. private bool IsSettingOn(string text, bool condition)
  247. {
  248. if (condition)
  249. {
  250. return text == "ON";
  251. }
  252. return text == "OFF";
  253. }
  254. private bool IsVoltageMatch(string text)
  255. {
  256. int num = 0;
  257. if (int.TryParse(text, out num))
  258. {
  259. return DanceSetting.Settings.Voltage == num;
  260. }
  261. if (text == "普通")
  262. {
  263. return DanceSetting.Settings.Voltage == 3;
  264. }
  265. return text == "難しい" && DanceSetting.Settings.Voltage == 4;
  266. }
  267. private bool IsCutinMatch(string text)
  268. {
  269. return DanceSetting.Settings.CutInGrade == Appeal_Mgr.ParseGrade(text);
  270. }
  271. private bool IsTimingMatch(string text)
  272. {
  273. return DanceSetting.Settings.NoteOccurTiming.ToString() == text.Replace("+", string.Empty).Replace("秒", string.Empty);
  274. }
  275. private bool IsEffectLigthtMatch(string text)
  276. {
  277. if (text == "軽量")
  278. {
  279. return DanceSetting.Settings.IsNoteEffectLight;
  280. }
  281. return !DanceSetting.Settings.IsNoteEffectLight;
  282. }
  283. private bool IsUndressFaceMatch(string text)
  284. {
  285. if (text == "通常")
  286. {
  287. return DanceSetting.Settings.UndressFaceOn;
  288. }
  289. return !DanceSetting.Settings.UndressFaceOn;
  290. }
  291. private bool IsJudgeTimingMatch(string text)
  292. {
  293. return DanceSetting.Settings.NoteJudgeTiming == float.Parse(text.Replace("秒", string.Empty));
  294. }
  295. private void OnDestroy()
  296. {
  297. using (FileStream fileStream = new FileStream(Path.GetFullPath(".\\dance_setting_br.dat"), FileMode.Create, FileAccess.Write))
  298. {
  299. BinaryFormatter binaryFormatter = new BinaryFormatter();
  300. binaryFormatter.Serialize(fileStream, "@Dance_Setting");
  301. binaryFormatter.Serialize(fileStream, string.Format("Ver:{0}", 1.7f));
  302. binaryFormatter.Serialize(fileStream, DanceSetting.Settings);
  303. fileStream.Close();
  304. }
  305. DanceSetting.m_IsFileExist = true;
  306. }
  307. private void SwitchFlag(string value_text, ref bool swtch_flag)
  308. {
  309. if (value_text != null)
  310. {
  311. if (!(value_text == "ON"))
  312. {
  313. if (value_text == "OFF")
  314. {
  315. swtch_flag = false;
  316. }
  317. }
  318. else
  319. {
  320. swtch_flag = true;
  321. }
  322. }
  323. }
  324. private void SetProduct(string value_text)
  325. {
  326. Product_Mgr.ProductRank product = Product_Mgr.ProductRank.Low;
  327. if (value_text != null)
  328. {
  329. if (!(value_text == "下位"))
  330. {
  331. if (!(value_text == "通常"))
  332. {
  333. if (value_text == "上位")
  334. {
  335. product = Product_Mgr.ProductRank.Special;
  336. }
  337. }
  338. else
  339. {
  340. product = Product_Mgr.ProductRank.Normal;
  341. }
  342. }
  343. else
  344. {
  345. product = Product_Mgr.ProductRank.Low;
  346. }
  347. }
  348. DanceSetting.Settings.Product = product;
  349. }
  350. private void SetAudience(string value_text)
  351. {
  352. Product_Mgr.AudienceState audience = Product_Mgr.AudienceState.Normal;
  353. if (value_text != null)
  354. {
  355. if (!(value_text == "小"))
  356. {
  357. if (!(value_text == "中"))
  358. {
  359. if (value_text == "大")
  360. {
  361. audience = Product_Mgr.AudienceState.Many;
  362. }
  363. }
  364. else
  365. {
  366. audience = Product_Mgr.AudienceState.Normal;
  367. }
  368. }
  369. else
  370. {
  371. audience = Product_Mgr.AudienceState.Few;
  372. }
  373. }
  374. DanceSetting.Settings.Audience = audience;
  375. }
  376. private void SetVoltage(string value_text)
  377. {
  378. int voltage = 0;
  379. if (int.TryParse(value_text, out voltage))
  380. {
  381. DanceSetting.Settings.Voltage = voltage;
  382. }
  383. else if (value_text != null)
  384. {
  385. if (!(value_text == "普通"))
  386. {
  387. if (value_text == "難しい")
  388. {
  389. DanceSetting.Settings.Voltage = 4;
  390. }
  391. }
  392. else
  393. {
  394. DanceSetting.Settings.Voltage = 3;
  395. }
  396. }
  397. }
  398. private void SetCutInGrade(string value_text)
  399. {
  400. DanceSetting.Settings.CutInGrade = Appeal_Mgr.ParseGrade(value_text);
  401. }
  402. private void SetNoteTiming(string value_text)
  403. {
  404. DanceSetting.Settings.NoteOccurTiming = int.Parse(value_text.Replace("+", string.Empty));
  405. }
  406. private void SetEffectLight(string value_text)
  407. {
  408. if (value_text != null)
  409. {
  410. if (!(value_text == "通常"))
  411. {
  412. if (value_text == "軽量")
  413. {
  414. DanceSetting.Settings.IsNoteEffectLight = true;
  415. }
  416. }
  417. else
  418. {
  419. DanceSetting.Settings.IsNoteEffectLight = false;
  420. }
  421. }
  422. }
  423. private void SetUndressFace(string value_text)
  424. {
  425. if (value_text != null)
  426. {
  427. if (!(value_text == "通常"))
  428. {
  429. if (value_text == "我慢")
  430. {
  431. DanceSetting.Settings.UndressFaceOn = false;
  432. }
  433. }
  434. else
  435. {
  436. DanceSetting.Settings.UndressFaceOn = true;
  437. }
  438. }
  439. }
  440. private void SetJudgeTiming(string value_text)
  441. {
  442. DanceSetting.Settings.NoteJudgeTiming = float.Parse(value_text);
  443. }
  444. private void ValueSetting()
  445. {
  446. string text = UIPopupList.current.value.Replace("\r", string.Empty);
  447. string text2 = text;
  448. bool isLocalized = UIPopupList.current.isLocalized;
  449. if (isLocalized)
  450. {
  451. string[] array = text2.Split(new char[]
  452. {
  453. '/'
  454. });
  455. if (array != null && 1 < array.Length)
  456. {
  457. text2 = array[array.Length - 1];
  458. }
  459. }
  460. DanceSetting.UIInspectorSetting uiinspectorSetting = this.m_SettingList.SingleOrDefault((DanceSetting.UIInspectorSetting e) => e.PopUpUI == UIPopupList.current);
  461. if (uiinspectorSetting == null)
  462. {
  463. return;
  464. }
  465. switch (uiinspectorSetting.MyType)
  466. {
  467. case DanceSetting.SettingType.Product:
  468. this.SetProduct(text2);
  469. break;
  470. case DanceSetting.SettingType.Audience:
  471. this.SetAudience(text2);
  472. break;
  473. case DanceSetting.SettingType.DepthofField:
  474. this.SwitchFlag(text2, ref DanceSetting.Settings.IsDepthOfFieldOn);
  475. break;
  476. case DanceSetting.SettingType.SePlay:
  477. this.SwitchFlag(text2, ref DanceSetting.Settings.IsSEPlay);
  478. break;
  479. case DanceSetting.SettingType.Voltage:
  480. this.SetVoltage(text2);
  481. break;
  482. case DanceSetting.SettingType.BlackBg:
  483. this.SwitchFlag(text2, ref DanceSetting.Settings.IsblackBGon);
  484. break;
  485. case DanceSetting.SettingType.NoteEffect:
  486. this.SetEffectLight(text2);
  487. break;
  488. case DanceSetting.SettingType.NoteTiming:
  489. this.SetNoteTiming(text2);
  490. break;
  491. case DanceSetting.SettingType.JudgeTiming:
  492. this.SetJudgeTiming(text2);
  493. break;
  494. case DanceSetting.SettingType.FpsCam:
  495. this.SwitchFlag(text2, ref DanceSetting.Settings.FPSCamMode);
  496. break;
  497. case DanceSetting.SettingType.Cutin:
  498. this.SetCutInGrade(text2);
  499. break;
  500. case DanceSetting.SettingType.Undress:
  501. this.SetUndressFace(text2);
  502. break;
  503. }
  504. if (this.m_SettingUIList[UIPopupList.current].Label)
  505. {
  506. if (isLocalized && this.m_SettingUIList[UIPopupList.current].localize != null)
  507. {
  508. this.m_IsSettingChange = (this.m_SettingUIList[UIPopupList.current].localize.Term != text);
  509. this.m_SettingUIList[UIPopupList.current].localize.SetTerm(text);
  510. }
  511. else
  512. {
  513. this.m_IsSettingChange = (this.m_SettingUIList[UIPopupList.current].Label.text != text);
  514. this.m_SettingUIList[UIPopupList.current].Label.text = text;
  515. }
  516. }
  517. }
  518. public void DisSelectable()
  519. {
  520. foreach (KeyValuePair<UIPopupList, DanceSetting.NeedData> keyValuePair in this.m_SettingUIList)
  521. {
  522. if (keyValuePair.Value.Collider)
  523. {
  524. keyValuePair.Value.Collider.enabled = false;
  525. }
  526. }
  527. }
  528. public void SetUIMode(string mode = "")
  529. {
  530. RhythmAction_Mgr.DanceType nowDance = RhythmAction_Mgr.NowDance;
  531. if (nowDance != RhythmAction_Mgr.DanceType.Challenge)
  532. {
  533. if (nowDance != RhythmAction_Mgr.DanceType.VS)
  534. {
  535. if (mode.IndexOf("モード") >= 0)
  536. {
  537. this.m_ModeLabel.text = mode + "設定";
  538. }
  539. else
  540. {
  541. this.m_ModeLabel.text = mode + "モード設定";
  542. }
  543. }
  544. else
  545. {
  546. this.m_ModeLabel.text = "VSダンス設定";
  547. }
  548. }
  549. else
  550. {
  551. this.m_ModeLabel.text = "ダンスショー設定";
  552. }
  553. int num = 0;
  554. foreach (DanceSetting.UIInspectorSetting uiinspectorSetting in this.m_SettingList)
  555. {
  556. GameObject gameObject = uiinspectorSetting.PopUpUI.transform.parent.gameObject;
  557. bool flag = uiinspectorSetting.OnDanceList.Contains(RhythmAction_Mgr.NowDance);
  558. if (GameMain.Instance.VRMode)
  559. {
  560. flag &= uiinspectorSetting.UseVR;
  561. }
  562. gameObject.SetActive(flag);
  563. if (flag)
  564. {
  565. gameObject.transform.localPosition = Vector3.up * (this.m_FirstUIposY - this.m_UISetInterval * (float)num);
  566. num++;
  567. }
  568. }
  569. this.m_SettingUIBg.height = this.m_OrijinBgheight + num * Mathf.FloorToInt(this.m_UISetInterval);
  570. }
  571. private const string m_SettingHeader = "@Dance_Setting";
  572. private const float m_SettingVer = 1.7f;
  573. [SerializeField]
  574. [Header("設定項目設置間隔")]
  575. private float m_UISetInterval;
  576. [SerializeField]
  577. private float m_FirstUIposY;
  578. [SerializeField]
  579. [Header("ポップアップ表示オフセット")]
  580. private float m_PopUpOffset = 27.47f;
  581. [SerializeField]
  582. [Header("ボタンUIグループ")]
  583. private Transform m_ButtonGroup;
  584. [SerializeField]
  585. private UILabel m_ModeLabel;
  586. private Dictionary<UIPopupList, DanceSetting.NeedData> m_SettingUIList = new Dictionary<UIPopupList, DanceSetting.NeedData>();
  587. [SerializeField]
  588. [Header("各UI設定")]
  589. private List<DanceSetting.UIInspectorSetting> m_SettingList = new List<DanceSetting.UIInspectorSetting>
  590. {
  591. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Product),
  592. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Audience),
  593. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.DepthofField),
  594. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.SePlay),
  595. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Voltage),
  596. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.BlackBg),
  597. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.NoteEffect),
  598. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.NoteTiming),
  599. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.JudgeTiming),
  600. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.FpsCam),
  601. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Cutin),
  602. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Undress)
  603. };
  604. private bool m_IsSettingChange;
  605. [SerializeField]
  606. [Header("設定UI背景")]
  607. private UISprite m_SettingUIBg;
  608. private int m_OrijinBgheight;
  609. public static SettingData Settings = new SettingData();
  610. private static bool m_IsFileExist = false;
  611. private static bool m_IsFileCheck = false;
  612. private class NeedData
  613. {
  614. public UILabel Label;
  615. public Localize localize;
  616. public UIButton Button;
  617. public BoxCollider Collider;
  618. public string DefoValue;
  619. }
  620. public enum SettingType
  621. {
  622. Product,
  623. Audience,
  624. DepthofField,
  625. SePlay,
  626. Voltage,
  627. BlackBg,
  628. NoteEffect,
  629. NoteTiming,
  630. JudgeTiming,
  631. FpsCam,
  632. Cutin,
  633. Undress,
  634. AllRelease
  635. }
  636. [Serializable]
  637. private class UIInspectorSetting
  638. {
  639. public UIInspectorSetting(DanceSetting.SettingType type)
  640. {
  641. this.MyType = type;
  642. }
  643. public DanceSetting.SettingType MyType;
  644. public UIPopupList PopUpUI;
  645. public List<RhythmAction_Mgr.DanceType> OnDanceList = new List<RhythmAction_Mgr.DanceType>();
  646. public bool UsePublic = true;
  647. public bool UseVR = true;
  648. }
  649. }