ソースコード
使い方
var task = new MultiTask { onEnded => { Debug.Log( "1" ); onEnded(); }, onEnded => { Debug.Log( "2" ); onEnded(); }, onEnded => { Debug.Log( "3" ); onEnded(); }, }; task.Play( () => Debug.Log( "完了" ) );
var task = new MultiTask { onEnded => { Debug.Log( "1" ); onEnded(); }, onEnded => { Debug.Log( "2" ); onEnded(); }, onEnded => { Debug.Log( "3" ); onEnded(); }, }; task.Play( () => Debug.Log( "完了" ) );