{"action":"created","comment":{"url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/comments/59307953","id":59307953,"diff_hunk":"@@ -0,0 +1,23 @@\n+﻿using UnityEngine;\n+using System.Collections;\n+\n+public class Beam : MonoBehaviour {\n+\n+\tfloat bulletSpeed = 2;\n+\n+\n+\t// Use this for initialization\n+\tvoid Start () {\n+\t\tDestroy(this.gameObject, 5);\n+\t}\n+\t// Update is called once per frame\n+\tvoid Update () {\n+\t\ttransform.Translate(0, 0, bulletSpeed);\n+\t}\n+\n+\tvoid OnCollisionEnter(Collision enemyCol) {\n+\t\tif(enemyCol.gameObject.layer == 9){ //layer = enemy","path":"unity/Assets/Script/Beam.cs","position":19,"original_position":19,"commit_id":"26ddd8e9d94f46d307ca51254b37cb924b323185","original_commit_id":"26ddd8e9d94f46d307ca51254b37cb924b323185","user":{"login":"p-chin","id":846514,"avatar_url":"https://avatars.githubusercontent.com/u/846514?v=3","gravatar_id":"","url":"https://api.github.com/users/p-chin","html_url":"https://github.com/p-chin","followers_url":"https://api.github.com/users/p-chin/followers","following_url":"https://api.github.com/users/p-chin/following{/other_user}","gists_url":"https://api.github.com/users/p-chin/gists{/gist_id}","starred_url":"https://api.github.com/users/p-chin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-chin/subscriptions","organizations_url":"https://api.github.com/users/p-chin/orgs","repos_url":"https://api.github.com/users/p-chin/repos","events_url":"https://api.github.com/users/p-chin/events{/privacy}","received_events_url":"https://api.github.com/users/p-chin/received_events","type":"User","site_admin":false},"body":"> if(enemyCol.gameObject.layer == 9){ //layer = enemy\r\n\r\nと書いてる箇所が多いから、レイヤーを定数で管理するUtilityClassを作っても良いと思った。\r\nゲームプレイを作る合間に暇があったら設計を考えてみてください","created_at":"2016-04-12T01:12:12Z","updated_at":"2016-04-12T01:12:12Z","html_url":"https://github.com/TakaakiJimbo/shoot/pull/3#discussion_r59307953","pull_request_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/comments/59307953"},"html":{"href":"https://github.com/TakaakiJimbo/shoot/pull/3#discussion_r59307953"},"pull_request":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3","id":65759325,"html_url":"https://github.com/TakaakiJimbo/shoot/pull/3","diff_url":"https://github.com/TakaakiJimbo/shoot/pull/3.diff","patch_url":"https://github.com/TakaakiJimbo/shoot/pull/3.patch","issue_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/3","number":3,"state":"open","locked":false,"title":"3日目の実装","user":{"login":"TakaakiJimbo","id":12542293,"avatar_url":"https://avatars.githubusercontent.com/u/12542293?v=3","gravatar_id":"","url":"https://api.github.com/users/TakaakiJimbo","html_url":"https://github.com/TakaakiJimbo","followers_url":"https://api.github.com/users/TakaakiJimbo/followers","following_url":"https://api.github.com/users/TakaakiJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TakaakiJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TakaakiJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakaakiJimbo/subscriptions","organizations_url":"https://api.github.com/users/TakaakiJimbo/orgs","repos_url":"https://api.github.com/users/TakaakiJimbo/repos","events_url":"https://api.github.com/users/TakaakiJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TakaakiJimbo/received_events","type":"User","site_admin":false},"body":"攻撃変更モード追加\r\n隕石のアニメーション追加・ランダム出現\r\nスコア追加（数字が増えるだけ）\r\n背景を一部向上\r\n","created_at":"2016-04-08T09:29:15Z","updated_at":"2016-04-12T01:12:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d80348757a4b7a5a08e682b115325ea71e7163d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/3/comments","statuses_url":"https://api.github.com/repos/TakaakiJimbo/shoot/statuses/26ddd8e9d94f46d307ca51254b37cb924b323185","head":{"label":"TakaakiJimbo:day3","ref":"day3","sha":"26ddd8e9d94f46d307ca51254b37cb924b323185","user":{"login":"TakaakiJimbo","id":12542293,"avatar_url":"https://avatars.githubusercontent.com/u/12542293?v=3","gravatar_id":"","url":"https://api.github.com/users/TakaakiJimbo","html_url":"https://github.com/TakaakiJimbo","followers_url":"https://api.github.com/users/TakaakiJimbo/followers","following_url":"https://api.github.com/users/TakaakiJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TakaakiJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TakaakiJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakaakiJimbo/subscriptions","organizations_url":"https://api.github.com/users/TakaakiJimbo/orgs","repos_url":"https://api.github.com/users/TakaakiJimbo/repos","events_url":"https://api.github.com/users/TakaakiJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TakaakiJimbo/received_events","type":"User","site_admin":false},"repo":{"id":55585727,"name":"shoot","full_name":"TakaakiJimbo/shoot","owner":{"login":"TakaakiJimbo","id":12542293,"avatar_url":"https://avatars.githubusercontent.com/u/12542293?v=3","gravatar_id":"","url":"https://api.github.com/users/TakaakiJimbo","html_url":"https://github.com/TakaakiJimbo","followers_url":"https://api.github.com/users/TakaakiJimbo/followers","following_url":"https://api.github.com/users/TakaakiJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TakaakiJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TakaakiJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakaakiJimbo/subscriptions","organizations_url":"https://api.github.com/users/TakaakiJimbo/orgs","repos_url":"https://api.github.com/users/TakaakiJimbo/repos","events_url":"https://api.github.com/users/TakaakiJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TakaakiJimbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TakaakiJimbo/shoot","description":"","fork":false,"url":"https://api.github.com/repos/TakaakiJimbo/shoot","forks_url":"https://api.github.com/repos/TakaakiJimbo/shoot/forks","keys_url":"https://api.github.com/repos/TakaakiJimbo/shoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TakaakiJimbo/shoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TakaakiJimbo/shoot/teams","hooks_url":"https://api.github.com/repos/TakaakiJimbo/shoot/hooks","issue_events_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/events{/number}","events_url":"https://api.github.com/repos/TakaakiJimbo/shoot/events","assignees_url":"https://api.github.com/repos/TakaakiJimbo/shoot/assignees{/user}","branches_url":"https://api.github.com/repos/TakaakiJimbo/shoot/branches{/branch}","tags_url":"https://api.github.com/repos/TakaakiJimbo/shoot/tags","blobs_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TakaakiJimbo/shoot/statuses/{sha}","languages_url":"https://api.github.com/repos/TakaakiJimbo/shoot/languages","stargazers_url":"https://api.github.com/repos/TakaakiJimbo/shoot/stargazers","contributors_url":"https://api.github.com/repos/TakaakiJimbo/shoot/contributors","subscribers_url":"https://api.github.com/repos/TakaakiJimbo/shoot/subscribers","subscription_url":"https://api.github.com/repos/TakaakiJimbo/shoot/subscription","commits_url":"https://api.github.com/repos/TakaakiJimbo/shoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/TakaakiJimbo/shoot/contents/{+path}","compare_url":"https://api.github.com/repos/TakaakiJimbo/shoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TakaakiJimbo/shoot/merges","archive_url":"https://api.github.com/repos/TakaakiJimbo/shoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TakaakiJimbo/shoot/downloads","issues_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues{/number}","pulls_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls{/number}","milestones_url":"https://api.github.com/repos/TakaakiJimbo/shoot/milestones{/number}","notifications_url":"https://api.github.com/repos/TakaakiJimbo/shoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TakaakiJimbo/shoot/labels{/name}","releases_url":"https://api.github.com/repos/TakaakiJimbo/shoot/releases{/id}","deployments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/deployments","created_at":"2016-04-06T07:42:06Z","updated_at":"2016-04-06T07:42:06Z","pushed_at":"2016-04-08T09:29:16Z","git_url":"git://github.com/TakaakiJimbo/shoot.git","ssh_url":"git@github.com:TakaakiJimbo/shoot.git","clone_url":"https://github.com/TakaakiJimbo/shoot.git","svn_url":"https://github.com/TakaakiJimbo/shoot","homepage":null,"size":47687,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"TakaakiJimbo:day2","ref":"day2","sha":"25dcf7eb9657f60ca2e4e1b457f67499f8f5a175","user":{"login":"TakaakiJimbo","id":12542293,"avatar_url":"https://avatars.githubusercontent.com/u/12542293?v=3","gravatar_id":"","url":"https://api.github.com/users/TakaakiJimbo","html_url":"https://github.com/TakaakiJimbo","followers_url":"https://api.github.com/users/TakaakiJimbo/followers","following_url":"https://api.github.com/users/TakaakiJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TakaakiJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TakaakiJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakaakiJimbo/subscriptions","organizations_url":"https://api.github.com/users/TakaakiJimbo/orgs","repos_url":"https://api.github.com/users/TakaakiJimbo/repos","events_url":"https://api.github.com/users/TakaakiJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TakaakiJimbo/received_events","type":"User","site_admin":false},"repo":{"id":55585727,"name":"shoot","full_name":"TakaakiJimbo/shoot","owner":{"login":"TakaakiJimbo","id":12542293,"avatar_url":"https://avatars.githubusercontent.com/u/12542293?v=3","gravatar_id":"","url":"https://api.github.com/users/TakaakiJimbo","html_url":"https://github.com/TakaakiJimbo","followers_url":"https://api.github.com/users/TakaakiJimbo/followers","following_url":"https://api.github.com/users/TakaakiJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TakaakiJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TakaakiJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakaakiJimbo/subscriptions","organizations_url":"https://api.github.com/users/TakaakiJimbo/orgs","repos_url":"https://api.github.com/users/TakaakiJimbo/repos","events_url":"https://api.github.com/users/TakaakiJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TakaakiJimbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TakaakiJimbo/shoot","description":"","fork":false,"url":"https://api.github.com/repos/TakaakiJimbo/shoot","forks_url":"https://api.github.com/repos/TakaakiJimbo/shoot/forks","keys_url":"https://api.github.com/repos/TakaakiJimbo/shoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TakaakiJimbo/shoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TakaakiJimbo/shoot/teams","hooks_url":"https://api.github.com/repos/TakaakiJimbo/shoot/hooks","issue_events_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/events{/number}","events_url":"https://api.github.com/repos/TakaakiJimbo/shoot/events","assignees_url":"https://api.github.com/repos/TakaakiJimbo/shoot/assignees{/user}","branches_url":"https://api.github.com/repos/TakaakiJimbo/shoot/branches{/branch}","tags_url":"https://api.github.com/repos/TakaakiJimbo/shoot/tags","blobs_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TakaakiJimbo/shoot/statuses/{sha}","languages_url":"https://api.github.com/repos/TakaakiJimbo/shoot/languages","stargazers_url":"https://api.github.com/repos/TakaakiJimbo/shoot/stargazers","contributors_url":"https://api.github.com/repos/TakaakiJimbo/shoot/contributors","subscribers_url":"https://api.github.com/repos/TakaakiJimbo/shoot/subscribers","subscription_url":"https://api.github.com/repos/TakaakiJimbo/shoot/subscription","commits_url":"https://api.github.com/repos/TakaakiJimbo/shoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/TakaakiJimbo/shoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/TakaakiJimbo/shoot/contents/{+path}","compare_url":"https://api.github.com/repos/TakaakiJimbo/shoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TakaakiJimbo/shoot/merges","archive_url":"https://api.github.com/repos/TakaakiJimbo/shoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TakaakiJimbo/shoot/downloads","issues_url":"https://api.github.com/repos/TakaakiJimbo/shoot/issues{/number}","pulls_url":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls{/number}","milestones_url":"https://api.github.com/repos/TakaakiJimbo/shoot/milestones{/number}","notifications_url":"https://api.github.com/repos/TakaakiJimbo/shoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TakaakiJimbo/shoot/labels{/name}","releases_url":"https://api.github.com/repos/TakaakiJimbo/shoot/releases{/id}","deployments_url":"https://api.github.com/repos/TakaakiJimbo/shoot/deployments","created_at":"2016-04-06T07:42:06Z","updated_at":"2016-04-06T07:42:06Z","pushed_at":"2016-04-08T09:29:16Z","git_url":"git://github.com/TakaakiJimbo/shoot.git","ssh_url":"git@github.com:TakaakiJimbo/shoot.git","clone_url":"https://github.com/TakaakiJimbo/shoot.git","svn_url":"https://github.com/TakaakiJimbo/shoot","homepage":null,"size":47687,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3"},"html":{"href":"https://github.com/TakaakiJimbo/shoot/pull/3"},"issue":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/3"},"comments":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TakaakiJimbo/shoot/statuses/26ddd8e9d94f46d307ca51254b37cb924b323185"}}}}