static void Initialize() { Root = Path.Combine(Application.dataPath, ".."); PersistentDataPath = Application.persistentDataPath; AssetBundle.UnloadAllAssetBundles(false); SensorPrefabs = RuntimeSettings.Instance.SensorPrefabs.ToList(); if (SensorPrefabs.Any(s => s == null)) { Debug.LogError("Null Sensor Prefab Detected - Check RuntimeSettings SensorPrefabs List for missing Sensor Prefab"); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else // return non-zero exit code Application.Quit(1); #endif return; } LoadBuiltinAssets(); LoadExternalAssets(); Sensors = SensorTypes.ListSensorFields(SensorPrefabs); Bridges = BridgeTypes.GetBridgeTypes(); ParseConfigFile(); if (!Application.isEditor) { ParseCommandLine(); } }
static void Initialize() { Root = Path.Combine(Application.dataPath, ".."); PersistentDataPath = Application.persistentDataPath; Sensors = SensorTypes.ListSensorFields(RuntimeSettings.Instance?.SensorPrefabs); Bridges = BridgeTypes.GetBridgeTypes(); ParseConfigFile(); if (!Application.isEditor) { ParseCommandLine(); } }
static void Initialize() { Root = Path.Combine(Application.dataPath, ".."); PersistentDataPath = Application.persistentDataPath; SensorPrefabs = LoadSensorPlugins(); Controllables = LoadControllablePlugins(); Sensors = SensorTypes.ListSensorFields(SensorPrefabs); Bridges = BridgeTypes.GetBridgeTypes(); ParseConfigFile(); if (!Application.isEditor) { ParseCommandLine(); } }