using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Security; using System.Security.Permissions; using UniGLTF.SpringBoneJobs; using Unity.Jobs; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] [CompilerGenerated] [EditorBrowsable(EditorBrowsableState.Never)] [GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)] internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1 { private struct MonoScriptData { public byte[] FilePathsData; public byte[] TypesData; public int TotalTypes; public int TotalFiles; public bool IsEditorOnly; } [MethodImpl(MethodImplOptions.AggressiveInlining)] private static MonoScriptData Get() { return new MonoScriptData { FilePathsData = new byte[78] { 0, 0, 0, 1, 0, 0, 0, 70, 92, 80, 97, 99, 107, 97, 103, 101, 115, 92, 99, 111, 109, 46, 118, 114, 109, 99, 46, 118, 114, 109, 92, 82, 117, 110, 116, 105, 109, 101, 92, 70, 97, 115, 116, 83, 112, 114, 105, 110, 103, 66, 111, 110, 101, 92, 70, 97, 115, 116, 83, 112, 114, 105, 110, 103, 66, 111, 110, 101, 83, 101, 114, 118, 105, 99, 101, 46, 99, 115 }, TypesData = new byte[51] { 0, 0, 0, 0, 46, 85, 110, 105, 86, 82, 77, 49, 48, 46, 70, 97, 115, 116, 83, 112, 114, 105, 110, 103, 66, 111, 110, 101, 115, 124, 70, 97, 115, 116, 83, 112, 114, 105, 110, 103, 66, 111, 110, 101, 83, 101, 114, 118, 105, 99, 101 }, TotalFiles = 1, TotalTypes = 1, IsEditorOnly = false }; } } namespace UniVRM10.FastSpringBones; [DefaultExecutionOrder(11010)] public sealed class FastSpringBoneService : MonoBehaviour { public enum UpdateTypes { Manual, LateUpdate } [SerializeField] [Header("Runtime")] public UpdateTypes UpdateType = UpdateTypes.LateUpdate; private FastSpringBoneScheduler _fastSpringBoneScheduler; private static FastSpringBoneService _instance; public FastSpringBoneBufferCombiner BufferCombiner { get; private set; } public static FastSpringBoneService Instance { get { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown if (Object.op_Implicit((Object)(object)_instance)) { return _instance; } _instance = Object.FindFirstObjectByType(); if (Object.op_Implicit((Object)(object)_instance)) { return _instance; } GameObject val = new GameObject("FastSpringBone Service"); Object.DontDestroyOnLoad((Object)val); _instance = val.AddComponent(); return _instance; } } public static void Free() { Object.Destroy((Object)(object)((Component)_instance).gameObject); _instance = null; } private void OnEnable() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Expected O, but got Unknown //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown BufferCombiner = new FastSpringBoneBufferCombiner(); _fastSpringBoneScheduler = new FastSpringBoneScheduler(BufferCombiner); } private void OnDisable() { BufferCombiner.Dispose(); _fastSpringBoneScheduler.Dispose(); } private void LateUpdate() { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) if (UpdateType == UpdateTypes.LateUpdate) { JobHandle val = _fastSpringBoneScheduler.Schedule(Time.deltaTime, (JobHandle?)null); ((JobHandle)(ref val)).Complete(); } } public void ManualUpdate(float deltaTime) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) JobHandle val = ManualUpdate(in deltaTime, (JobHandle?)null); ((JobHandle)(ref val)).Complete(); } public JobHandle ManualUpdate(in float deltaTime, in JobHandle? dependency = null) { //IL_0021: Unknown result type (might be due to invalid IL or missing references) if (UpdateType != UpdateTypes.Manual) { throw new ArgumentException("require UpdateTypes.Manual"); } return _fastSpringBoneScheduler.Schedule(deltaTime, dependency); } public void OnDrawGizmosSelected() { if (((Behaviour)this).enabled) { BufferCombiner.DrawGizmos(); } } }