From 4743ad7c57b0db25673c2ee29dcc8d78dc4277d9 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Thu, 14 Oct 2021 18:19:15 +0900 Subject: [PATCH] mv --- .../GLTF/IO/Runtime/AwaitCaller.meta | 3 +++ .../Runtime/{ => AwaitCaller}/IAwaitCaller.cs | 22 --------------- .../{ => AwaitCaller}/IAwaitCaller.cs.meta | 0 .../IO/Runtime/AwaitCaller/ImmediateCaller.cs | 27 +++++++++++++++++++ .../AwaitCaller/ImmediateCaller.cs.meta | 11 ++++++++ 5 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller.meta rename Assets/VRMShaders/GLTF/IO/Runtime/{ => AwaitCaller}/IAwaitCaller.cs (70%) rename Assets/VRMShaders/GLTF/IO/Runtime/{ => AwaitCaller}/IAwaitCaller.cs.meta (100%) create mode 100644 Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs create mode 100644 Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs.meta diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller.meta b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller.meta new file mode 100644 index 000000000..f759ea07f --- /dev/null +++ b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: ea8ee11da1da4f82b988a3108a362c2f +timeCreated: 1634202988 \ No newline at end of file diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/IAwaitCaller.cs b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/IAwaitCaller.cs similarity index 70% rename from Assets/VRMShaders/GLTF/IO/Runtime/IAwaitCaller.cs rename to Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/IAwaitCaller.cs index 2d31a73d5..c97e4d0ce 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/IAwaitCaller.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/IAwaitCaller.cs @@ -32,26 +32,4 @@ namespace VRMShaders /// Task Run(Func action); } - - /// - /// 同期実行 - /// - public sealed class ImmediateCaller : IAwaitCaller - { - public Task NextFrame() - { - return Task.FromResult(null); - } - - public Task Run(Action action) - { - action(); - return Task.FromResult(null); - } - - public Task Run(Func action) - { - return Task.FromResult(action()); - } - } } diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/IAwaitCaller.cs.meta b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/IAwaitCaller.cs.meta similarity index 100% rename from Assets/VRMShaders/GLTF/IO/Runtime/IAwaitCaller.cs.meta rename to Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/IAwaitCaller.cs.meta diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs new file mode 100644 index 000000000..f3e6d56a0 --- /dev/null +++ b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs @@ -0,0 +1,27 @@ +using System; +using System.Threading.Tasks; + +namespace VRMShaders +{ + /// + /// 同期実行 + /// + public sealed class ImmediateCaller : IAwaitCaller + { + public Task NextFrame() + { + return Task.FromResult(null); + } + + public Task Run(Action action) + { + action(); + return Task.FromResult(null); + } + + public Task Run(Func action) + { + return Task.FromResult(action()); + } + } +} \ No newline at end of file diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs.meta b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs.meta new file mode 100644 index 000000000..a128df3a9 --- /dev/null +++ b/Assets/VRMShaders/GLTF/IO/Runtime/AwaitCaller/ImmediateCaller.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30f43d5b7d6b4184fb775a315b835365 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: