{"id":15580208,"url":"https://github.com/reiiyuki/publisher-gameobject-kit-unity","last_synced_at":"2026-04-25T11:34:25.788Z","repository":{"id":92050738,"uuid":"122945153","full_name":"ReiiYuki/publisher-gameobject-kit-unity","owner":"ReiiYuki","description":"Publisher class for GameObject in Unity.","archived":false,"fork":false,"pushed_at":"2018-02-26T10:13:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T01:42:38.817Z","etag":null,"topics":["publisher","publisher-subscriber","unity"],"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/ReiiYuki.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":"2018-02-26T09:23:30.000Z","updated_at":"2018-02-26T16:08:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"412a27c1-d36b-4712-93c3-50e298e888ac","html_url":"https://github.com/ReiiYuki/publisher-gameobject-kit-unity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ReiiYuki/publisher-gameobject-kit-unity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReiiYuki%2Fpublisher-gameobject-kit-unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReiiYuki%2Fpublisher-gameobject-kit-unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReiiYuki%2Fpublisher-gameobject-kit-unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReiiYuki%2Fpublisher-gameobject-kit-unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReiiYuki","download_url":"https://codeload.github.com/ReiiYuki/publisher-gameobject-kit-unity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReiiYuki%2Fpublisher-gameobject-kit-unity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["publisher","publisher-subscriber","unity"],"created_at":"2024-10-02T19:23:37.739Z","updated_at":"2026-04-25T11:34:25.752Z","avatar_url":"https://github.com/ReiiYuki.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publisher GameObject Kit\n\nPublisher class for GameObject in Unity.\n\n## Usage\n\n### Publisher\n\nJust extends Script class with Publisher\n\n#### Example Usage\n\n```cs\nusing PublisherKit;\n\npublic class ExamplePublisher : Publisher {\n\n    const string EVENT_METHOD_NAME = \"OnEvent\";\n\n\tvoid Start () {\n        Broadcast(EVENT_METHOD_NAME, \"Sample Data\");\n\t}\n\n}\n\n```\n\n#### Broadcast Data\n\nBroadcast(string methodName, object data=null)\n* methodName: string - subscriber method name for receiving data\n* data: object - data to send to subscriber. It can be of data\n\n### Subscriber\n\nImplement event receiver method and Register it as subscriber of publisher\n\n#### Example Usage\n\n```cs\nusing UnityEngine;\n\npublic class ExampleSubscriber : MonoBehaviour {\n\n    public GameObject publisherObject;\n\n\tvoid Start () {\n        publisherObject.GetComponent\u003cExamplePublisher\u003e().Register(gameObject);\n\t}\n\n    void OnEvent (string receiveData) {\n        //Do something\n    }\n\n}\n```\n\n#### Register as Subscriber\n\n```cs\npublisherObject.GetComponent\u003cExamplePublisher\u003e().Register(gameObject);\n```\n\n#### Handle Event Data\n\n```cs\nvoid OnEvent (string receiveData) {\n    //Do something\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiiyuki%2Fpublisher-gameobject-kit-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freiiyuki%2Fpublisher-gameobject-kit-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiiyuki%2Fpublisher-gameobject-kit-unity/lists"}