{"id":14960944,"url":"https://github.com/baba-s/kogane-unity-lib-task","last_synced_at":"2025-06-24T20:08:57.294Z","repository":{"id":110292248,"uuid":"177528976","full_name":"baba-s/kogane-unity-lib-task","owner":"baba-s","description":"順番にコールバックを実行したり、同時にコールバックを実行したりできるクラス","archived":false,"fork":false,"pushed_at":"2019-04-29T11:45:29.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T03:14:13.528Z","etag":null,"topics":["unity","unity-script","unity-scripts","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baba-s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-25T06:39:26.000Z","updated_at":"2020-10-06T18:07:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d45214c4-c81a-46ca-9d92-0e6068435316","html_url":"https://github.com/baba-s/kogane-unity-lib-task","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"122d1fbcd959dd1336d7ec93434f54c9cd9cc338"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/baba-s/kogane-unity-lib-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2Fkogane-unity-lib-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2Fkogane-unity-lib-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2Fkogane-unity-lib-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2Fkogane-unity-lib-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baba-s","download_url":"https://codeload.github.com/baba-s/kogane-unity-lib-task/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2Fkogane-unity-lib-task/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261749216,"owners_count":23203990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity","unity-script","unity-scripts","unity3d"],"created_at":"2024-09-24T13:23:30.301Z","updated_at":"2025-06-24T20:08:57.260Z","avatar_url":"https://github.com/baba-s.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kogane-unity-lib-task\n\n順番にコールバックを実行したり、同時にコールバックを実行したりできるクラス\n\n[![](https://img.shields.io/github/release/baba-s/kogane-unity-lib-task.svg?label=latest%20version)](https://github.com/baba-s/kogane-unity-lib-task/releases)\n[![](https://img.shields.io/github/release-date/baba-s/kogane-unity-lib-task.svg)](https://github.com/baba-s/kogane-unity-lib-task/releases)\n![](https://img.shields.io/badge/Unity-2018.3%2B-red.svg)\n![](https://img.shields.io/badge/.NET-4.x-orange.svg)\n[![](https://img.shields.io/github/license/baba-s/kogane-unity-lib-task.svg)](https://github.com/baba-s/kogane-unity-lib-task/blob/master/LICENSE)\n\n## バージョン\n\n- Unity 2018.3.9f1\n\n## 順番にコールバックを実行\n\n### 基本\n\n```cs\nvar task = new SingleTask\n{\n    onEnded =\u003e Hoge1( onEnded ),\n    onEnded =\u003e Hoge2( onEnded ),\n    onEnded =\u003e Hoge3( onEnded ),\n};\ntask.Play( () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力\n\n```cs\nvar task = new SingleTaskWithLog\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力（経過時間付き）\n\n```cs\nvar task = new SingleTaskWithTimeLog\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力（経過時間、GC 発生回数付き）\n\n```cs\nvar task = new SingleTaskWithProfiler\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n## 同時にコールバックを実行\n\n### 基本\n\n```cs\nvar task = new MultiTask\n{\n    onEnded =\u003e Hoge1( onEnded ),\n    onEnded =\u003e Hoge2( onEnded ),\n    onEnded =\u003e Hoge3( onEnded ),\n};\ntask.Play( () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力\n\n```cs\nvar task = new MultiTaskWithLog\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力（経過時間付き）\n\n```cs\nvar task = new MultiTaskWithTimeLog\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n### 各コールバックの開始、終了時にログ出力（経過時間、GC 発生回数付き）\n\n```cs\nvar task = new MultiTaskWithProfiler\n{\n    { \"Hoge1\", onEnded =\u003e Hoge1( onEnded ) },\n    { \"Hoge2\", onEnded =\u003e Hoge2( onEnded ) },\n    { \"Hoge3\", onEnded =\u003e Hoge3( onEnded ) },\n};\ntask.Play( \"Task\", () =\u003e Debug.Log( \"Complete\" ) );\n```\n\n## ログ出力を有効化\n\nログ出力を有効化したい場合は `ENABLE_DEBUG_LOG` のシンボルを追加する必要があります","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2Fkogane-unity-lib-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaba-s%2Fkogane-unity-lib-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2Fkogane-unity-lib-task/lists"}