{"id":19514258,"url":"https://github.com/nejcc/unityscripts","last_synced_at":"2025-10-13T16:10:41.976Z","repository":{"id":150645730,"uuid":"161077833","full_name":"Nejcc/UnityScripts","owner":"Nejcc","description":"Helpfull unity scripts","archived":false,"fork":false,"pushed_at":"2018-12-11T19:28:37.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T23:32:12.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Nejcc.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-12-09T20:19:42.000Z","updated_at":"2018-12-11T19:28:39.000Z","dependencies_parsed_at":"2023-06-12T04:30:47.820Z","dependency_job_id":null,"html_url":"https://github.com/Nejcc/UnityScripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nejcc/UnityScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2FUnityScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2FUnityScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2FUnityScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2FUnityScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nejcc","download_url":"https://codeload.github.com/Nejcc/UnityScripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2FUnityScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016059,"owners_count":26085798,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T23:35:40.261Z","updated_at":"2025-10-13T16:10:41.944Z","avatar_url":"https://github.com/Nejcc.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnityScripts\nHelpfull unity scripts\n\n## Get tag \n```cs\nif( hit.transform.gameObject.tag == \"Interact\"){\n  Debug.Log(\"Colide with interact tile\");\n}\n```\n## Get dropdown in inspector\n```cs\npublic enum TileSetType {Forest,Grassland,Housing};\n\n[SerializeField] public TileSetType tileType;\n```\n\n## Spawn items in the world with X and z cordinats\n```cs\nprivate Dictionary\u003cHexTile , GameObject\u003e hexToGameObjectMap;\n\npublic void SpawnUnitAt(GameObject PlayerUnitPrefab, int q, int r)\n{\n  GameObject myHex = hexToGameObjectMap[GetHexAt(q,r)];\n  //Spawn player in\n  Instantiate(PlayerUnitPrefab, myHex.transform.position, Quaternion.identity, myHex.transform);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejcc%2Funityscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnejcc%2Funityscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejcc%2Funityscripts/lists"}