diff --git a/Assets/Scenes/WACVR.unity b/Assets/Scenes/WACVR.unity index 15b4f71..0e8ba49 100644 --- a/Assets/Scenes/WACVR.unity +++ b/Assets/Scenes/WACVR.unity @@ -29212,6 +29212,50 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: LightManager: {fileID: 1251312951} +--- !u!1 &1971558084 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1971558086} + - component: {fileID: 1971558085} + m_Layer: 0 + m_Name: BatchFileManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1971558085 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1971558084} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1d954af7c8e97fa498727def89aecae7, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &1971558086 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1971558084} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.3229462, y: 2.6595407, z: 2.7452295} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 14 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1972244961 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Script/Configuration/Config.cs b/Assets/Script/Configuration/Config.cs index 5018930..03315cd 100644 --- a/Assets/Script/Configuration/Config.cs +++ b/Assets/Script/Configuration/Config.cs @@ -87,4 +87,5 @@ public class Config public VirtualKeyCode ServiceKey = VirtualKeyCode.DELETE; public VirtualKeyCode CoinKey = VirtualKeyCode.HOME; public VirtualKeyCode CustomKey = VirtualKeyCode.NONAME; + public string batFileLocation = ""; } diff --git a/Assets/Script/Configuration/StartBatchManager.cs b/Assets/Script/Configuration/StartBatchManager.cs new file mode 100644 index 0000000..f3424c4 --- /dev/null +++ b/Assets/Script/Configuration/StartBatchManager.cs @@ -0,0 +1,14 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System.Diagnostics; +using System.IO; + +public class StartBatchManager : MonoBehaviour +{ + private void Start() + { + ConfigManager.EnsureInitialization(); + Process.Start(Path.GetFullPath(ConfigManager.config.batFileLocation)); + } +} diff --git a/Assets/Script/Configuration/StartBatchManager.cs.meta b/Assets/Script/Configuration/StartBatchManager.cs.meta new file mode 100644 index 0000000..7940031 --- /dev/null +++ b/Assets/Script/Configuration/StartBatchManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1d954af7c8e97fa498727def89aecae7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: