{"action":"created","issue":{"url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/1","repository_url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper","labels_url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/1/comments","events_url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/1/events","html_url":"https://github.com/hoshinahiroki/kicking-sniper/issues/1","id":319603200,"number":1,"title":"エラーの原因がわかりません","user":{"login":"hoshinahiroki","id":38141246,"avatar_url":"https://avatars2.githubusercontent.com/u/38141246?v=4","gravatar_id":"","url":"https://api.github.com/users/hoshinahiroki","html_url":"https://github.com/hoshinahiroki","followers_url":"https://api.github.com/users/hoshinahiroki/followers","following_url":"https://api.github.com/users/hoshinahiroki/following{/other_user}","gists_url":"https://api.github.com/users/hoshinahiroki/gists{/gist_id}","starred_url":"https://api.github.com/users/hoshinahiroki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoshinahiroki/subscriptions","organizations_url":"https://api.github.com/users/hoshinahiroki/orgs","repos_url":"https://api.github.com/users/hoshinahiroki/repos","events_url":"https://api.github.com/users/hoshinahiroki/events{/privacy}","received_events_url":"https://api.github.com/users/hoshinahiroki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-02T15:32:04Z","updated_at":"2018-05-03T12:28:41Z","closed_at":null,"author_association":"OWNER","body":"using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class PlayerScripts : MonoBehaviour \r\n{\r\n\tpublic GameObject ball;\r\n\tpublic float power;\r\n\r\n\tRigidbody rbball;\r\n\tVector3 ballVec;\r\n\r\n\tVector3 clickstart, clickend;\r\n\r\n\t// Use this for initialization\r\n\tvoid Start () {\r\n\t\trbball = rbball.GetComponent<Rigidbody> ();\r\n\t}\r\n\t\r\n\t// Update is called once per frame\r\n\tvoid Update () {\r\n\t\tif (Input.GetMouseButtonDown (0)) \r\n\t\t{\r\n\t\t\tclickstart = Input.mousePosition;\r\n\t\t\tDebug.Log (\"clickstart(\" + clickstart);\r\n\t\t}\r\n\t\tif (Input.GetMouseButtonUp (0)) \r\n\t\t{\r\n\t\t\tclickend = Input.mousePosition;\r\n\t\t\tDebug.Log (\"clickend(\" + clickend);\r\n\t\t}\r\n\t\tif(clickstart == clickend)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tballVec =(clickend - clickstart);\r\n\t\tballVec.z = ballVec.y;\r\n\t\tballVec.y = 10;\r\n\t\tballVec.Normalize();\r\n\r\n\t\trbball.AddForce (ballVec * power);\r\n\t\t\r\n\t}\r\n}\r\n上がballのコードなのですがNullReferenceException: Object reference not set to an instance of an objectというエラーが出てしまい調べたところオブジェクトを参照する部分が一つのインスタンスに設定されていないと出ました。どうすればいいのか教えてください。"},"comment":{"url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/comments/386278754","html_url":"https://github.com/hoshinahiroki/kicking-sniper/issues/1#issuecomment-386278754","issue_url":"https://api.github.com/repos/hoshinahiroki/kicking-sniper/issues/1","id":386278754,"user":{"login":"hoshinahiroki","id":38141246,"avatar_url":"https://avatars2.githubusercontent.com/u/38141246?v=4","gravatar_id":"","url":"https://api.github.com/users/hoshinahiroki","html_url":"https://github.com/hoshinahiroki","followers_url":"https://api.github.com/users/hoshinahiroki/followers","following_url":"https://api.github.com/users/hoshinahiroki/following{/other_user}","gists_url":"https://api.github.com/users/hoshinahiroki/gists{/gist_id}","starred_url":"https://api.github.com/users/hoshinahiroki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoshinahiroki/subscriptions","organizations_url":"https://api.github.com/users/hoshinahiroki/orgs","repos_url":"https://api.github.com/users/hoshinahiroki/repos","events_url":"https://api.github.com/users/hoshinahiroki/events{/privacy}","received_events_url":"https://api.github.com/users/hoshinahiroki/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T12:28:41Z","updated_at":"2018-05-03T12:28:41Z","author_association":"OWNER","body":"できました！ありがとうございます！\r\nはい！勉強になります。\r\n"}}
{"actor":{"display_login":"hoshinahiroki"}}