{"id":19445652,"url":"https://github.com/kuritaro1122/entitystatus","last_synced_at":"2026-05-14T01:32:53.858Z","repository":{"id":42194725,"uuid":"403197566","full_name":"kuritaro1122/EntityStatus","owner":"kuritaro1122","description":"[Unity] GameObjectにHPと攻撃力を付与し、それらのステータスを管理する。 Entity同士が接触した時に自動的に相互にダメージを与える。","archived":false,"fork":false,"pushed_at":"2023-12-13T06:08:12.000Z","size":14238,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T08:37:27.965Z","etag":null,"topics":["csharp","unity","unity-scripts"],"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/kuritaro1122.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":"2021-09-05T02:28:07.000Z","updated_at":"2024-11-18T03:42:23.000Z","dependencies_parsed_at":"2024-11-10T16:11:30.141Z","dependency_job_id":null,"html_url":"https://github.com/kuritaro1122/EntityStatus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kuritaro1122/EntityStatus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FEntityStatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FEntityStatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FEntityStatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FEntityStatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuritaro1122","download_url":"https://codeload.github.com/kuritaro1122/EntityStatus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FEntityStatus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33006169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csharp","unity","unity-scripts"],"created_at":"2024-11-10T16:11:24.230Z","updated_at":"2026-05-14T01:32:53.824Z","avatar_url":"https://github.com/kuritaro1122.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[EntityStatusExはこちら](/README_EntityStatusEx.md/)\n\n# EntityStatus\n\nGameObjectにHPと攻撃力を付与し、それらのステータスを管理する。\nEntity同士が接触した時に自動的に相互にダメージを与える。\\\nプレイヤー、エネミー、ショットや障害物など当たり判定周りのほとんどの処理がこのプログラムで完結します。\n\n# DEMO\n![gif](/img/demo.gif/)\n\n\n# Requirement\n\n* UnityEngine\n* System\n\n# Usage\n\n① EntityStatus.cs を任意のGameObjectにコンポーネントして、Tagに「Entity」を追加\\\n② RigidBodyとColliderをコンポーネント\\\n③ EntityStatusのパラメータを調整\n\n※「Entity」タグが追加されていれば、Start()時に自動的にタグが変更されます。\\\n※ RigidBodyのisTriggerはtrueでもfalseでも問題なく動作します。\n\ndemo/EntityStatus_hyper.csは[HyperNova](https://kuritaro1122.github.io/HyperNova-Web/)で使用しているステータス管理プログラムです。EntityStatusを継承することで簡単にダメージエフェクトを追加したり、撃破スコアを追加したりできます。\n\n# Contains\n\n## Inspector\n\n![image](img/inspectorView_entityStatus.png)\n\n## Public Variable\n```\nbool statusActive\nDamageType damageType\nEntityType EntityType_ { get; }\nfloat MaxHP { get; }\nfloat HP { get; }\nfloat Power { get; }\nbool Defeated { get; }\n```\n## Public Function\n```\nEntityStatus Set(float? hp, float? power, EntityType? entityType, bool? isShot, DamageType? damageType)\nEntityStatus SetDamagedAction(System.Action action, bool reset = false)\nEntityStatus SetDefeatedAction(System.Action action, bool reset = false)\nEntityStatus SetRecoverdAction(System.Action action, bool reset = false)\nvoid Damage(float value, int key = -1)\nvoid Recover(float value)\nvoid RecoverFull(bool recoverAction = true)\nvoid Defeat()\n```\n\n## Protected Variable\n```\nEntityType entityType\nbool isShot\nfloat maxHP\nfloat hp\nfloat power\n```\n\n## Virtual Funtion\n```\nvoid Awake()\nvoid OnEnable()\nvoid OnValidate()\nvoid OnTriggerEnter(Collider other)\nvoid OnCollisionEnter(Collision collision)\nvoid Damage(float value, int key = -1)\nvoid Recover(float value)\nvoid RecoverFull(bool recoverAction = true)\nvoid Defeat()\n```\n\n## Enum\n```\nEntityType { enemy, friend, obstacle }\nDefeatType { destroy, nonActive, none }\n```\n\n# Note\n\nこのリポジトリを使用する際にはdemoフォルダを削除してください。EntityStatus_hyper.csは単体では動作しません。\n\n# License\n\n\"EntityStatus\" is under [MIT license](https://en.wikipedia.org/wiki/MIT_License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Fentitystatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuritaro1122%2Fentitystatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Fentitystatus/lists"}