{"action":"created","issue":{"url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/2","repository_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary","labels_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/2/comments","events_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/2/events","html_url":"https://github.com/LSBUGPG/UnityLibrary/issues/2","id":183696520,"number":2,"title":"Instantiating a specific sound or animation based on collision and cancelling said sounds and animation if the player moves away from said collision.","user":{"login":"Tayloj36","id":22477330,"avatar_url":"https://avatars.githubusercontent.com/u/22477330?v=3","gravatar_id":"","url":"https://api.github.com/users/Tayloj36","html_url":"https://github.com/Tayloj36","followers_url":"https://api.github.com/users/Tayloj36/followers","following_url":"https://api.github.com/users/Tayloj36/following{/other_user}","gists_url":"https://api.github.com/users/Tayloj36/gists{/gist_id}","starred_url":"https://api.github.com/users/Tayloj36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tayloj36/subscriptions","organizations_url":"https://api.github.com/users/Tayloj36/orgs","repos_url":"https://api.github.com/users/Tayloj36/repos","events_url":"https://api.github.com/users/Tayloj36/events{/privacy}","received_events_url":"https://api.github.com/users/Tayloj36/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pligero","id":22477353,"avatar_url":"https://avatars.githubusercontent.com/u/22477353?v=3","gravatar_id":"","url":"https://api.github.com/users/pligero","html_url":"https://github.com/pligero","followers_url":"https://api.github.com/users/pligero/followers","following_url":"https://api.github.com/users/pligero/following{/other_user}","gists_url":"https://api.github.com/users/pligero/gists{/gist_id}","starred_url":"https://api.github.com/users/pligero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pligero/subscriptions","organizations_url":"https://api.github.com/users/pligero/orgs","repos_url":"https://api.github.com/users/pligero/repos","events_url":"https://api.github.com/users/pligero/events{/privacy}","received_events_url":"https://api.github.com/users/pligero/received_events","type":"User","site_admin":false},"assignees":[{"login":"pligero","id":22477353,"avatar_url":"https://avatars.githubusercontent.com/u/22477353?v=3","gravatar_id":"","url":"https://api.github.com/users/pligero","html_url":"https://github.com/pligero","followers_url":"https://api.github.com/users/pligero/followers","following_url":"https://api.github.com/users/pligero/following{/other_user}","gists_url":"https://api.github.com/users/pligero/gists{/gist_id}","starred_url":"https://api.github.com/users/pligero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pligero/subscriptions","organizations_url":"https://api.github.com/users/pligero/orgs","repos_url":"https://api.github.com/users/pligero/repos","events_url":"https://api.github.com/users/pligero/events{/privacy}","received_events_url":"https://api.github.com/users/pligero/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/milestones/1","html_url":"https://github.com/LSBUGPG/UnityLibrary/milestones/Practice%20week","labels_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/milestones/1/labels","id":2077312,"number":1,"title":"Practice week","description":"This is to practice assigning tasks to a milestone\r\n","creator":{"login":"paulsinnett","id":3679392,"avatar_url":"https://avatars.githubusercontent.com/u/3679392?v=3","gravatar_id":"","url":"https://api.github.com/users/paulsinnett","html_url":"https://github.com/paulsinnett","followers_url":"https://api.github.com/users/paulsinnett/followers","following_url":"https://api.github.com/users/paulsinnett/following{/other_user}","gists_url":"https://api.github.com/users/paulsinnett/gists{/gist_id}","starred_url":"https://api.github.com/users/paulsinnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulsinnett/subscriptions","organizations_url":"https://api.github.com/users/paulsinnett/orgs","repos_url":"https://api.github.com/users/paulsinnett/repos","events_url":"https://api.github.com/users/paulsinnett/events{/privacy}","received_events_url":"https://api.github.com/users/paulsinnett/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-10-18T14:09:22Z","updated_at":"2016-10-18T14:09:35Z","due_on":"2016-10-25T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-10-18T14:06:29Z","updated_at":"2016-10-25T13:55:10Z","closed_at":null,"body":null},"comment":{"url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/comments/256041368","html_url":"https://github.com/LSBUGPG/UnityLibrary/issues/2#issuecomment-256041368","issue_url":"https://api.github.com/repos/LSBUGPG/UnityLibrary/issues/2","id":256041368,"user":{"login":"Tayloj36","id":22477330,"avatar_url":"https://avatars.githubusercontent.com/u/22477330?v=3","gravatar_id":"","url":"https://api.github.com/users/Tayloj36","html_url":"https://github.com/Tayloj36","followers_url":"https://api.github.com/users/Tayloj36/followers","following_url":"https://api.github.com/users/Tayloj36/following{/other_user}","gists_url":"https://api.github.com/users/Tayloj36/gists{/gist_id}","starred_url":"https://api.github.com/users/Tayloj36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tayloj36/subscriptions","organizations_url":"https://api.github.com/users/Tayloj36/orgs","repos_url":"https://api.github.com/users/Tayloj36/repos","events_url":"https://api.github.com/users/Tayloj36/events{/privacy}","received_events_url":"https://api.github.com/users/Tayloj36/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T13:55:10Z","updated_at":"2016-10-25T13:55:10Z","body":"I think I may have found the answer, at least if you want to do basic HUD stuff, I'm not sure about cutsceneces:\r\n\r\n1: You need to attach a new script for your collier.\r\n2: In this script create an integer called \"Vision\r\n\" set to 0.\r\n3. In void update, make it so that \"vision\" is constantly counting down but do an \"if\" statement that tells the integer that if it goes bellow 0, it should reset itself at 0, thus capping the integer.\r\n4.Make a void \"OntriggerStay\" that sets the Integer to 100 and then make an \"Invoke\" command to create a trigger for the sound and animation.\r\n5. in the \"void\"  place an \"if\" statement that detects if \"Vision\" is more then zero.\r\n6. (optional) place a (\"print\") called that prints \"in trigger\" to the script to test the script.\r\n7. go back to coding, create a public animator \"anim\" and/or Audiosouce \"audioclip.\r\n8 .if you are using sound, place an audio clip onto the same game object you attach the script to, in the script, place a source = GetComponent<AudioSource>();  .\r\n9. On the \"Void\" setting use the Anim.setIntiger(\"CanSee,1\") to establish a trigger for the animator.\r\n10. If you are having trouble place these at the top of the screen.:\r\nusing UnityEngine.UI;\r\nusing UnityEngine.SceneManagement;\r\n\r\nWhew! that was a mouthful, I'll leave a a couple of sample scripts for you to examine:\r\n\r\n[examplescript1.txt](https://github.com/LSBUGPG/UnityLibrary/files/550757/examplescript1.txt)\r\n\r\n[Examplescript2.txt](https://github.com/LSBUGPG/UnityLibrary/files/550759/Examplescript2.txt)\r\n"}}
{"actor":{"display_login":"Tayloj36"}}