Use Action instead of Action<Unit>

This commit is contained in:
yutopp
2019-01-29 14:54:34 +09:00
parent 725c8b0abc
commit 123c695aa8
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ namespace VRM.Samples
Debug.LogFormat("meta: title:{0}", meta.Title);
// ParseしたJSONをシーンオブジェクトに変換していく
context.LoadAsync(_ => OnLoaded(context));
context.LoadAsync(() => OnLoaded(context));
}
void OnLoaded(VRMImporterContext context)

View File

@@ -163,7 +163,7 @@ namespace VRM.Samples
{
#if true
var now = Time.time;
context.LoadAsync(_ =>
context.LoadAsync(() =>
{
var delta = Time.time - now;
Debug.LogFormat("LoadAsync {0:0.0} seconds", delta);