InitializeUnitySettingsを追加
This commit is contained in:
parent
7bcf056446
commit
e0423d4ed0
|
|
@ -0,0 +1,31 @@
|
|||
using UnityEngine;
|
||||
|
||||
public sealed class InitializeUnitySettings : MonoBehaviour {
|
||||
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
static void Initialize(){
|
||||
// AnalyticsManager.Initialize();
|
||||
|
||||
var dontDestroyObject = Instantiate<GameObject>(Resources.Load<GameObject>("DontDestroyObject"));
|
||||
DontDestroyOnLoad(dontDestroyObject);
|
||||
|
||||
#if DEVELOPMENT_BUILD || UNITY_EDITOR
|
||||
#if UNITY_EDITOR
|
||||
// SRDebuggerのEventSystem自動生成がデフォルト有効なので、有効であれば無効にして保存する
|
||||
// 有効のままだと管理していないEventSystemが発生し、releaseでのみ発現するバグが生まれる
|
||||
// if(SRDebugger.Settings.Instance.EnableEventSystemGeneration){
|
||||
// SRDebugger.Settings.Instance.EnableEventSystemGeneration = false;
|
||||
// UnityEditor.EditorUtility.SetDirty(SRDebugger.Settings.Instance);
|
||||
// UnityEditor.AssetDatabase.SaveAssets();
|
||||
// }
|
||||
#endif
|
||||
// SRDebug.Init();
|
||||
#endif
|
||||
|
||||
// BackButtonManager.Instance.SetGenericAction(ApplicationExitConfirmDialogManager.ShowDialog);
|
||||
|
||||
Application.targetFrameRate = 60;
|
||||
|
||||
Input.multiTouchEnabled = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c09bf5c349f094ef19f429f47b919f7d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue