順番にコールバックを実行したり、同時にコールバックを実行したりできるクラス
- Unity 2018.3.9f1
var task = new SingleTask
{
onEnded => Hoge1( onEnded ),
onEnded => Hoge2( onEnded ),
onEnded => Hoge3( onEnded ),
};
task.Play( () => Debug.Log( "Complete" ) );
var task = new SingleTaskWithLog
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
var task = new SingleTaskWithTimeLog
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
var task = new SingleTaskWithProfiler
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
var task = new MultiTask
{
onEnded => Hoge1( onEnded ),
onEnded => Hoge2( onEnded ),
onEnded => Hoge3( onEnded ),
};
task.Play( () => Debug.Log( "Complete" ) );
var task = new MultiTaskWithLog
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
var task = new MultiTaskWithTimeLog
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
var task = new MultiTaskWithProfiler
{
{ "Hoge1", onEnded => Hoge1( onEnded ) },
{ "Hoge2", onEnded => Hoge2( onEnded ) },
{ "Hoge3", onEnded => Hoge3( onEnded ) },
};
task.Play( "Task", () => Debug.Log( "Complete" ) );
ログ出力を有効化したい場合は ENABLE_DEBUG_LOG
のシンボルを追加する必要があります