add auto start .bat function (pls add file path in config.json)
This commit is contained in:
parent
014cebe156
commit
19f36d6e93
@ -29212,6 +29212,50 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
LightManager: {fileID: 1251312951}
|
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
|
--- !u!114 &1972244961
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -87,4 +87,5 @@ public class Config
|
|||||||
public VirtualKeyCode ServiceKey = VirtualKeyCode.DELETE;
|
public VirtualKeyCode ServiceKey = VirtualKeyCode.DELETE;
|
||||||
public VirtualKeyCode CoinKey = VirtualKeyCode.HOME;
|
public VirtualKeyCode CoinKey = VirtualKeyCode.HOME;
|
||||||
public VirtualKeyCode CustomKey = VirtualKeyCode.NONAME;
|
public VirtualKeyCode CustomKey = VirtualKeyCode.NONAME;
|
||||||
|
public string batFileLocation = "";
|
||||||
}
|
}
|
||||||
|
14
Assets/Script/Configuration/StartBatchManager.cs
Normal file
14
Assets/Script/Configuration/StartBatchManager.cs
Normal file
@ -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));
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/Configuration/StartBatchManager.cs.meta
Normal file
11
Assets/Script/Configuration/StartBatchManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1d954af7c8e97fa498727def89aecae7
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user