{"action":"created","comment":{"url":"https://api.github.com/repos/years1hundred/death-gun/pulls/comments/89252090","pull_request_review_id":9798962,"id":89252090,"diff_hunk":"@@ -0,0 +1,220 @@\n+﻿using UnityEngine;\n+using System.Collections;\n+\n+public class AutoElevator : MonoBehaviour\n+{\n+    public bool notMoving;\n+    public bool reachedDestination;\n+    public bool onStartPoint;\n+    public bool onEndPoint;\n+\n+    public GameObject objectToMove;\n+    public GameObject theRightWall;\n+    public GameObject theLeftWall;\n+    public GameObject theStartLeftBarrier;\n+    public GameObject theStartRightBarrier;\n+    public GameObject theEndLeftBarrier;\n+    public GameObject theEndRightBarrier;\n+    public GameObject theStartPoint;\n+    public GameObject theEndPoint;\n+\n+    public Transform startPoint;\n+    public Transform endPoint;\n+\n+    public float moveSpeed;\n+    public float waitTime;\n+    public float waitCounter;\n+    \n+    private Vector3 currentTarget;\n+\n+\n+    void Start()\n+    {\n+        currentTarget = endPoint.position;\n+\n+        waitCounter = waitTime;\n+\n+        theLeftWall.SetActive(false);\n+        theRightWall.SetActive(false);\n+        theStartLeftBarrier.SetActive(false);\n+        theStartRightBarrier.SetActive(false);\n+        theEndLeftBarrier.SetActive(false);\n+        theEndRightBarrier.SetActive(false);\n+    }\n+\n+\n+\n+    void Update()\n+    {     \n+        if (objectToMove.transform.position == endPoint.position)\n+        {\n+            onStartPoint = false;\n+            onEndPoint = true;\n+            if (waitCounter < 0f)\n+            {\n+                reachedDestination = true;\n+                theStartLeftBarrier.SetActive(false);\n+                theStartRightBarrier.SetActive(false);\n+                theEndLeftBarrier.SetActive(false);\n+                theEndRightBarrier.SetActive(false);\n+            }\n+            notMoving = true;\n+            currentTarget = startPoint.position;\n+            if (theEndPoint.gameObject.GetComponent<ElevatorBookends>().leftWall == true)","path":"unity-game/Assets/Scripts/ElevatorScripts/AutoElevator.cs","position":63,"original_position":63,"commit_id":"45ba4b23e7a886d2bf334a2bd1006cf17e2cca3a","original_commit_id":"45ba4b23e7a886d2bf334a2bd1006cf17e2cca3a","user":{"login":"joeybrk372","id":16545249,"avatar_url":"https://avatars.githubusercontent.com/u/16545249?v=3","gravatar_id":"","url":"https://api.github.com/users/joeybrk372","html_url":"https://github.com/joeybrk372","followers_url":"https://api.github.com/users/joeybrk372/followers","following_url":"https://api.github.com/users/joeybrk372/following{/other_user}","gists_url":"https://api.github.com/users/joeybrk372/gists{/gist_id}","starred_url":"https://api.github.com/users/joeybrk372/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeybrk372/subscriptions","organizations_url":"https://api.github.com/users/joeybrk372/orgs","repos_url":"https://api.github.com/users/joeybrk372/repos","events_url":"https://api.github.com/users/joeybrk372/events{/privacy}","received_events_url":"https://api.github.com/users/joeybrk372/received_events","type":"User","site_admin":false},"body":"yes, the whole if  and else if can be replaced by that","created_at":"2016-11-23T03:23:53Z","updated_at":"2016-11-23T03:23:53Z","html_url":"https://github.com/years1hundred/death-gun/pull/10#discussion_r89252090","pull_request_url":"https://api.github.com/repos/years1hundred/death-gun/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/comments/89252090"},"html":{"href":"https://github.com/years1hundred/death-gun/pull/10#discussion_r89252090"},"pull_request":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/years1hundred/death-gun/pulls/10","id":94737925,"html_url":"https://github.com/years1hundred/death-gun/pull/10","diff_url":"https://github.com/years1hundred/death-gun/pull/10.diff","patch_url":"https://github.com/years1hundred/death-gun/pull/10.patch","issue_url":"https://api.github.com/repos/years1hundred/death-gun/issues/10","number":10,"state":"open","locked":false,"title":"Moving platforms","user":{"login":"years1hundred","id":19893825,"avatar_url":"https://avatars.githubusercontent.com/u/19893825?v=3","gravatar_id":"","url":"https://api.github.com/users/years1hundred","html_url":"https://github.com/years1hundred","followers_url":"https://api.github.com/users/years1hundred/followers","following_url":"https://api.github.com/users/years1hundred/following{/other_user}","gists_url":"https://api.github.com/users/years1hundred/gists{/gist_id}","starred_url":"https://api.github.com/users/years1hundred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/years1hundred/subscriptions","organizations_url":"https://api.github.com/users/years1hundred/orgs","repos_url":"https://api.github.com/users/years1hundred/repos","events_url":"https://api.github.com/users/years1hundred/events{/privacy}","received_events_url":"https://api.github.com/users/years1hundred/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-22T02:38:42Z","updated_at":"2016-11-23T03:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3492b16dc7686dfcacff1244fea6e1469d5ba11","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/years1hundred/death-gun/pulls/10/commits","review_comments_url":"https://api.github.com/repos/years1hundred/death-gun/pulls/10/comments","review_comment_url":"https://api.github.com/repos/years1hundred/death-gun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/years1hundred/death-gun/issues/10/comments","statuses_url":"https://api.github.com/repos/years1hundred/death-gun/statuses/45ba4b23e7a886d2bf334a2bd1006cf17e2cca3a","head":{"label":"years1hundred:moving-platforms","ref":"moving-platforms","sha":"45ba4b23e7a886d2bf334a2bd1006cf17e2cca3a","user":{"login":"years1hundred","id":19893825,"avatar_url":"https://avatars.githubusercontent.com/u/19893825?v=3","gravatar_id":"","url":"https://api.github.com/users/years1hundred","html_url":"https://github.com/years1hundred","followers_url":"https://api.github.com/users/years1hundred/followers","following_url":"https://api.github.com/users/years1hundred/following{/other_user}","gists_url":"https://api.github.com/users/years1hundred/gists{/gist_id}","starred_url":"https://api.github.com/users/years1hundred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/years1hundred/subscriptions","organizations_url":"https://api.github.com/users/years1hundred/orgs","repos_url":"https://api.github.com/users/years1hundred/repos","events_url":"https://api.github.com/users/years1hundred/events{/privacy}","received_events_url":"https://api.github.com/users/years1hundred/received_events","type":"User","site_admin":false},"repo":{"id":71961686,"name":"death-gun","full_name":"years1hundred/death-gun","owner":{"login":"years1hundred","id":19893825,"avatar_url":"https://avatars.githubusercontent.com/u/19893825?v=3","gravatar_id":"","url":"https://api.github.com/users/years1hundred","html_url":"https://github.com/years1hundred","followers_url":"https://api.github.com/users/years1hundred/followers","following_url":"https://api.github.com/users/years1hundred/following{/other_user}","gists_url":"https://api.github.com/users/years1hundred/gists{/gist_id}","starred_url":"https://api.github.com/users/years1hundred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/years1hundred/subscriptions","organizations_url":"https://api.github.com/users/years1hundred/orgs","repos_url":"https://api.github.com/users/years1hundred/repos","events_url":"https://api.github.com/users/years1hundred/events{/privacy}","received_events_url":"https://api.github.com/users/years1hundred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/years1hundred/death-gun","description":null,"fork":false,"url":"https://api.github.com/repos/years1hundred/death-gun","forks_url":"https://api.github.com/repos/years1hundred/death-gun/forks","keys_url":"https://api.github.com/repos/years1hundred/death-gun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/years1hundred/death-gun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/years1hundred/death-gun/teams","hooks_url":"https://api.github.com/repos/years1hundred/death-gun/hooks","issue_events_url":"https://api.github.com/repos/years1hundred/death-gun/issues/events{/number}","events_url":"https://api.github.com/repos/years1hundred/death-gun/events","assignees_url":"https://api.github.com/repos/years1hundred/death-gun/assignees{/user}","branches_url":"https://api.github.com/repos/years1hundred/death-gun/branches{/branch}","tags_url":"https://api.github.com/repos/years1hundred/death-gun/tags","blobs_url":"https://api.github.com/repos/years1hundred/death-gun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/years1hundred/death-gun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/years1hundred/death-gun/git/refs{/sha}","trees_url":"https://api.github.com/repos/years1hundred/death-gun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/years1hundred/death-gun/statuses/{sha}","languages_url":"https://api.github.com/repos/years1hundred/death-gun/languages","stargazers_url":"https://api.github.com/repos/years1hundred/death-gun/stargazers","contributors_url":"https://api.github.com/repos/years1hundred/death-gun/contributors","subscribers_url":"https://api.github.com/repos/years1hundred/death-gun/subscribers","subscription_url":"https://api.github.com/repos/years1hundred/death-gun/subscription","commits_url":"https://api.github.com/repos/years1hundred/death-gun/commits{/sha}","git_commits_url":"https://api.github.com/repos/years1hundred/death-gun/git/commits{/sha}","comments_url":"https://api.github.com/repos/years1hundred/death-gun/comments{/number}","issue_comment_url":"https://api.github.com/repos/years1hundred/death-gun/issues/comments{/number}","contents_url":"https://api.github.com/repos/years1hundred/death-gun/contents/{+path}","compare_url":"https://api.github.com/repos/years1hundred/death-gun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/years1hundred/death-gun/merges","archive_url":"https://api.github.com/repos/years1hundred/death-gun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/years1hundred/death-gun/downloads","issues_url":"https://api.github.com/repos/years1hundred/death-gun/issues{/number}","pulls_url":"https://api.github.com/repos/years1hundred/death-gun/pulls{/number}","milestones_url":"https://api.github.com/repos/years1hundred/death-gun/milestones{/number}","notifications_url":"https://api.github.com/repos/years1hundred/death-gun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/years1hundred/death-gun/labels{/name}","releases_url":"https://api.github.com/repos/years1hundred/death-gun/releases{/id}","deployments_url":"https://api.github.com/repos/years1hundred/death-gun/deployments","created_at":"2016-10-26T03:13:49Z","updated_at":"2016-10-27T01:37:50Z","pushed_at":"2016-11-22T02:38:42Z","git_url":"git://github.com/years1hundred/death-gun.git","ssh_url":"git@github.com:years1hundred/death-gun.git","clone_url":"https://github.com/years1hundred/death-gun.git","svn_url":"https://github.com/years1hundred/death-gun","homepage":null,"size":182,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"development"}},"base":{"label":"years1hundred:development","ref":"development","sha":"706d926484456c817a00ed45189276868a5e94ed","user":{"login":"years1hundred","id":19893825,"avatar_url":"https://avatars.githubusercontent.com/u/19893825?v=3","gravatar_id":"","url":"https://api.github.com/users/years1hundred","html_url":"https://github.com/years1hundred","followers_url":"https://api.github.com/users/years1hundred/followers","following_url":"https://api.github.com/users/years1hundred/following{/other_user}","gists_url":"https://api.github.com/users/years1hundred/gists{/gist_id}","starred_url":"https://api.github.com/users/years1hundred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/years1hundred/subscriptions","organizations_url":"https://api.github.com/users/years1hundred/orgs","repos_url":"https://api.github.com/users/years1hundred/repos","events_url":"https://api.github.com/users/years1hundred/events{/privacy}","received_events_url":"https://api.github.com/users/years1hundred/received_events","type":"User","site_admin":false},"repo":{"id":71961686,"name":"death-gun","full_name":"years1hundred/death-gun","owner":{"login":"years1hundred","id":19893825,"avatar_url":"https://avatars.githubusercontent.com/u/19893825?v=3","gravatar_id":"","url":"https://api.github.com/users/years1hundred","html_url":"https://github.com/years1hundred","followers_url":"https://api.github.com/users/years1hundred/followers","following_url":"https://api.github.com/users/years1hundred/following{/other_user}","gists_url":"https://api.github.com/users/years1hundred/gists{/gist_id}","starred_url":"https://api.github.com/users/years1hundred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/years1hundred/subscriptions","organizations_url":"https://api.github.com/users/years1hundred/orgs","repos_url":"https://api.github.com/users/years1hundred/repos","events_url":"https://api.github.com/users/years1hundred/events{/privacy}","received_events_url":"https://api.github.com/users/years1hundred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/years1hundred/death-gun","description":null,"fork":false,"url":"https://api.github.com/repos/years1hundred/death-gun","forks_url":"https://api.github.com/repos/years1hundred/death-gun/forks","keys_url":"https://api.github.com/repos/years1hundred/death-gun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/years1hundred/death-gun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/years1hundred/death-gun/teams","hooks_url":"https://api.github.com/repos/years1hundred/death-gun/hooks","issue_events_url":"https://api.github.com/repos/years1hundred/death-gun/issues/events{/number}","events_url":"https://api.github.com/repos/years1hundred/death-gun/events","assignees_url":"https://api.github.com/repos/years1hundred/death-gun/assignees{/user}","branches_url":"https://api.github.com/repos/years1hundred/death-gun/branches{/branch}","tags_url":"https://api.github.com/repos/years1hundred/death-gun/tags","blobs_url":"https://api.github.com/repos/years1hundred/death-gun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/years1hundred/death-gun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/years1hundred/death-gun/git/refs{/sha}","trees_url":"https://api.github.com/repos/years1hundred/death-gun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/years1hundred/death-gun/statuses/{sha}","languages_url":"https://api.github.com/repos/years1hundred/death-gun/languages","stargazers_url":"https://api.github.com/repos/years1hundred/death-gun/stargazers","contributors_url":"https://api.github.com/repos/years1hundred/death-gun/contributors","subscribers_url":"https://api.github.com/repos/years1hundred/death-gun/subscribers","subscription_url":"https://api.github.com/repos/years1hundred/death-gun/subscription","commits_url":"https://api.github.com/repos/years1hundred/death-gun/commits{/sha}","git_commits_url":"https://api.github.com/repos/years1hundred/death-gun/git/commits{/sha}","comments_url":"https://api.github.com/repos/years1hundred/death-gun/comments{/number}","issue_comment_url":"https://api.github.com/repos/years1hundred/death-gun/issues/comments{/number}","contents_url":"https://api.github.com/repos/years1hundred/death-gun/contents/{+path}","compare_url":"https://api.github.com/repos/years1hundred/death-gun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/years1hundred/death-gun/merges","archive_url":"https://api.github.com/repos/years1hundred/death-gun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/years1hundred/death-gun/downloads","issues_url":"https://api.github.com/repos/years1hundred/death-gun/issues{/number}","pulls_url":"https://api.github.com/repos/years1hundred/death-gun/pulls{/number}","milestones_url":"https://api.github.com/repos/years1hundred/death-gun/milestones{/number}","notifications_url":"https://api.github.com/repos/years1hundred/death-gun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/years1hundred/death-gun/labels{/name}","releases_url":"https://api.github.com/repos/years1hundred/death-gun/releases{/id}","deployments_url":"https://api.github.com/repos/years1hundred/death-gun/deployments","created_at":"2016-10-26T03:13:49Z","updated_at":"2016-10-27T01:37:50Z","pushed_at":"2016-11-22T02:38:42Z","git_url":"git://github.com/years1hundred/death-gun.git","ssh_url":"git@github.com:years1hundred/death-gun.git","clone_url":"https://github.com/years1hundred/death-gun.git","svn_url":"https://github.com/years1hundred/death-gun","homepage":null,"size":182,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/10"},"html":{"href":"https://github.com/years1hundred/death-gun/pull/10"},"issue":{"href":"https://api.github.com/repos/years1hundred/death-gun/issues/10"},"comments":{"href":"https://api.github.com/repos/years1hundred/death-gun/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/years1hundred/death-gun/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/years1hundred/death-gun/statuses/45ba4b23e7a886d2bf334a2bd1006cf17e2cca3a"}}}}
{"actor":{"display_login":"joeybrk372"}}