{"action":"created","comment":{"url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/comments/227605877","pull_request_review_id":167686086,"id":227605877,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzYwNTg3Nw==","diff_hunk":"@@ -0,0 +1,98 @@\n+﻿using System.Collections;\n+using System.Collections.Generic;\n+using UnityEngine;\n+using UnityEngine.SceneManagement;\n+using UnityEngine.Assertions;\n+\n+[System.Serializable]\n+public class GameController : MonoBehaviour \n+{\n+\t[SerializeField]\n+\tprivate GameObject hazard;\n+\t[SerializeField]\n+\tprivate GameObject hazardBig;\n+\t[SerializeField]\n+\tpublic TextMesh scoreText;\n+\n+\tpublic static int Score;\n+\n+\t[SerializeField]\n+\tprivate TextMesh restartText;\n+\t[SerializeField]\n+\tprivate TextMesh gameOverText;\n+\n+\tpublic static bool Gameover;\n+\tprivate bool restart;\n+\tpublic const int ScorePerHit = 10;\n+\n+\tprivate const int numHazardPerWave = 5;\n+\tprivate const float hazardTime = 0.25f;\n+\tprivate const float waveTime = 3;\n+\n+\tprivate const float hazardXRange = 6f; //  hazard range (x) is from -6 to 6.\n+\tprivate const float hazardInstantiatePosZ = 20f;\n+\n+\tprivate void Awake()\n+\t{\n+\t\tAssert.IsNotNull (hazard);\n+\t\tAssert.IsNotNull (hazardBig);\n+\t\tAssert.IsNotNull (scoreText);\n+\t\tAssert.IsNotNull (restartText);\n+\t\tAssert.IsNotNull (gameOverText);\n+\t}\n+\n+\tprivate IEnumerator SpawnWaves()\n+\t{\n+\t\twhile (!Gameover) \n+\t\t{\n+\t\t\tfor (int i = 0; i < numHazardPerWave; ++i) \n+\t\t\t{\n+\t\t\t\tVector3 hazardPos = new Vector3 (Random.Range (-hazardXRange, hazardXRange), 0f, hazardInstantiatePosZ);\n+\t\t\t\tInstantiate (hazard, hazardPos, Quaternion.identity);\n+\t\t\t\tyield return new WaitForSeconds (hazardTime);\n+\t\t\t}\n+\n+\t\t\tVector3 bigHazardPos = new Vector3 (Random.Range (-hazardXRange, hazardXRange), 0f, hazardInstantiatePosZ);","path":"Assets/Scenes/Scripts/GameController.cs","position":55,"original_position":55,"commit_id":"582b44fdeacd157aa66496bb46c57a0ccf977862","original_commit_id":"582b44fdeacd157aa66496bb46c57a0ccf977862","user":{"login":"nadnbuds","id":8891505,"node_id":"MDQ6VXNlcjg4OTE1MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/8891505?v=4","gravatar_id":"","url":"https://api.github.com/users/nadnbuds","html_url":"https://github.com/nadnbuds","followers_url":"https://api.github.com/users/nadnbuds/followers","following_url":"https://api.github.com/users/nadnbuds/following{/other_user}","gists_url":"https://api.github.com/users/nadnbuds/gists{/gist_id}","starred_url":"https://api.github.com/users/nadnbuds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadnbuds/subscriptions","organizations_url":"https://api.github.com/users/nadnbuds/orgs","repos_url":"https://api.github.com/users/nadnbuds/repos","events_url":"https://api.github.com/users/nadnbuds/events{/privacy}","received_events_url":"https://api.github.com/users/nadnbuds/received_events","type":"User","site_admin":false},"body":"^","created_at":"2018-10-24T00:05:29Z","updated_at":"2018-10-24T00:19:51Z","html_url":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2#discussion_r227605877","pull_request_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/comments/227605877"},"html":{"href":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2#discussion_r227605877"},"pull_request":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2","id":224501165,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTAxMTY1","html_url":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2","diff_url":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2.diff","patch_url":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2.patch","issue_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/2","number":2,"state":"open","locked":false,"title":"Sub2","user":{"login":"Mari-Hayashi","id":43657669,"node_id":"MDQ6VXNlcjQzNjU3NjY5","avatar_url":"https://avatars1.githubusercontent.com/u/43657669?v=4","gravatar_id":"","url":"https://api.github.com/users/Mari-Hayashi","html_url":"https://github.com/Mari-Hayashi","followers_url":"https://api.github.com/users/Mari-Hayashi/followers","following_url":"https://api.github.com/users/Mari-Hayashi/following{/other_user}","gists_url":"https://api.github.com/users/Mari-Hayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mari-Hayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mari-Hayashi/subscriptions","organizations_url":"https://api.github.com/users/Mari-Hayashi/orgs","repos_url":"https://api.github.com/users/Mari-Hayashi/repos","events_url":"https://api.github.com/users/Mari-Hayashi/events{/privacy}","received_events_url":"https://api.github.com/users/Mari-Hayashi/received_events","type":"User","site_admin":false},"body":"C# Styles fixed.","created_at":"2018-10-20T21:03:22Z","updated_at":"2018-10-24T00:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92d761e402d532f35faf6a1af6eb642d008454c7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/2/comments","statuses_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/statuses/582b44fdeacd157aa66496bb46c57a0ccf977862","head":{"label":"Mari-Hayashi:sub2","ref":"sub2","sha":"582b44fdeacd157aa66496bb46c57a0ccf977862","user":{"login":"Mari-Hayashi","id":43657669,"node_id":"MDQ6VXNlcjQzNjU3NjY5","avatar_url":"https://avatars1.githubusercontent.com/u/43657669?v=4","gravatar_id":"","url":"https://api.github.com/users/Mari-Hayashi","html_url":"https://github.com/Mari-Hayashi","followers_url":"https://api.github.com/users/Mari-Hayashi/followers","following_url":"https://api.github.com/users/Mari-Hayashi/following{/other_user}","gists_url":"https://api.github.com/users/Mari-Hayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mari-Hayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mari-Hayashi/subscriptions","organizations_url":"https://api.github.com/users/Mari-Hayashi/orgs","repos_url":"https://api.github.com/users/Mari-Hayashi/repos","events_url":"https://api.github.com/users/Mari-Hayashi/events{/privacy}","received_events_url":"https://api.github.com/users/Mari-Hayashi/received_events","type":"User","site_admin":false},"repo":{"id":152815526,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI4MTU1MjY=","name":"SpaceShooter2","full_name":"Mari-Hayashi/SpaceShooter2","private":false,"owner":{"login":"Mari-Hayashi","id":43657669,"node_id":"MDQ6VXNlcjQzNjU3NjY5","avatar_url":"https://avatars1.githubusercontent.com/u/43657669?v=4","gravatar_id":"","url":"https://api.github.com/users/Mari-Hayashi","html_url":"https://github.com/Mari-Hayashi","followers_url":"https://api.github.com/users/Mari-Hayashi/followers","following_url":"https://api.github.com/users/Mari-Hayashi/following{/other_user}","gists_url":"https://api.github.com/users/Mari-Hayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mari-Hayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mari-Hayashi/subscriptions","organizations_url":"https://api.github.com/users/Mari-Hayashi/orgs","repos_url":"https://api.github.com/users/Mari-Hayashi/repos","events_url":"https://api.github.com/users/Mari-Hayashi/events{/privacy}","received_events_url":"https://api.github.com/users/Mari-Hayashi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Mari-Hayashi/SpaceShooter2","description":null,"fork":false,"url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2","forks_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/forks","keys_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/teams","hooks_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/hooks","issue_events_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/events{/number}","events_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/events","assignees_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/assignees{/user}","branches_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/branches{/branch}","tags_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/tags","blobs_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/statuses/{sha}","languages_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/languages","stargazers_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/stargazers","contributors_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/contributors","subscribers_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/subscribers","subscription_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/subscription","commits_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/contents/{+path}","compare_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/merges","archive_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/downloads","issues_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues{/number}","pulls_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls{/number}","milestones_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/milestones{/number}","notifications_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/labels{/name}","releases_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/releases{/id}","deployments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/deployments","created_at":"2018-10-12T22:56:48Z","updated_at":"2018-10-12T23:17:00Z","pushed_at":"2018-10-23T20:37:49Z","git_url":"git://github.com/Mari-Hayashi/SpaceShooter2.git","ssh_url":"git@github.com:Mari-Hayashi/SpaceShooter2.git","clone_url":"https://github.com/Mari-Hayashi/SpaceShooter2.git","svn_url":"https://github.com/Mari-Hayashi/SpaceShooter2","homepage":null,"size":41496,"stargazers_count":0,"watchers_count":0,"language":"ASP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Mari-Hayashi:master","ref":"master","sha":"6d3c65f8b97ca3cfe0641b28f80b264dea159eed","user":{"login":"Mari-Hayashi","id":43657669,"node_id":"MDQ6VXNlcjQzNjU3NjY5","avatar_url":"https://avatars1.githubusercontent.com/u/43657669?v=4","gravatar_id":"","url":"https://api.github.com/users/Mari-Hayashi","html_url":"https://github.com/Mari-Hayashi","followers_url":"https://api.github.com/users/Mari-Hayashi/followers","following_url":"https://api.github.com/users/Mari-Hayashi/following{/other_user}","gists_url":"https://api.github.com/users/Mari-Hayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mari-Hayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mari-Hayashi/subscriptions","organizations_url":"https://api.github.com/users/Mari-Hayashi/orgs","repos_url":"https://api.github.com/users/Mari-Hayashi/repos","events_url":"https://api.github.com/users/Mari-Hayashi/events{/privacy}","received_events_url":"https://api.github.com/users/Mari-Hayashi/received_events","type":"User","site_admin":false},"repo":{"id":152815526,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI4MTU1MjY=","name":"SpaceShooter2","full_name":"Mari-Hayashi/SpaceShooter2","private":false,"owner":{"login":"Mari-Hayashi","id":43657669,"node_id":"MDQ6VXNlcjQzNjU3NjY5","avatar_url":"https://avatars1.githubusercontent.com/u/43657669?v=4","gravatar_id":"","url":"https://api.github.com/users/Mari-Hayashi","html_url":"https://github.com/Mari-Hayashi","followers_url":"https://api.github.com/users/Mari-Hayashi/followers","following_url":"https://api.github.com/users/Mari-Hayashi/following{/other_user}","gists_url":"https://api.github.com/users/Mari-Hayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mari-Hayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mari-Hayashi/subscriptions","organizations_url":"https://api.github.com/users/Mari-Hayashi/orgs","repos_url":"https://api.github.com/users/Mari-Hayashi/repos","events_url":"https://api.github.com/users/Mari-Hayashi/events{/privacy}","received_events_url":"https://api.github.com/users/Mari-Hayashi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Mari-Hayashi/SpaceShooter2","description":null,"fork":false,"url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2","forks_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/forks","keys_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/teams","hooks_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/hooks","issue_events_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/events{/number}","events_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/events","assignees_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/assignees{/user}","branches_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/branches{/branch}","tags_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/tags","blobs_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/statuses/{sha}","languages_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/languages","stargazers_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/stargazers","contributors_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/contributors","subscribers_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/subscribers","subscription_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/subscription","commits_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/contents/{+path}","compare_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/merges","archive_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/downloads","issues_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues{/number}","pulls_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls{/number}","milestones_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/milestones{/number}","notifications_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/labels{/name}","releases_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/releases{/id}","deployments_url":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/deployments","created_at":"2018-10-12T22:56:48Z","updated_at":"2018-10-12T23:17:00Z","pushed_at":"2018-10-23T20:37:49Z","git_url":"git://github.com/Mari-Hayashi/SpaceShooter2.git","ssh_url":"git@github.com:Mari-Hayashi/SpaceShooter2.git","clone_url":"https://github.com/Mari-Hayashi/SpaceShooter2.git","svn_url":"https://github.com/Mari-Hayashi/SpaceShooter2","homepage":null,"size":41496,"stargazers_count":0,"watchers_count":0,"language":"ASP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2"},"html":{"href":"https://github.com/Mari-Hayashi/SpaceShooter2/pull/2"},"issue":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/2"},"comments":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Mari-Hayashi/SpaceShooter2/statuses/582b44fdeacd157aa66496bb46c57a0ccf977862"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nadnbuds"}}