mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 01:25:45 -05:00
Use Action instead of Action<Unit>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user