{"action":"opened","issue":{"url":"https://api.github.com/repos/loicteixeira/gj-unity-api/issues/32","labels_url":"https://api.github.com/repos/loicteixeira/gj-unity-api/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/loicteixeira/gj-unity-api/issues/32/comments","events_url":"https://api.github.com/repos/loicteixeira/gj-unity-api/issues/32/events","html_url":"https://github.com/loicteixeira/gj-unity-api/issues/32","id":72257199,"number":32,"title":"DebugUser & DebugToken","user":{"login":"orcolom","id":12054081,"avatar_url":"https://avatars.githubusercontent.com/u/12054081?v=3","gravatar_id":"","url":"https://api.github.com/users/orcolom","html_url":"https://github.com/orcolom","followers_url":"https://api.github.com/users/orcolom/followers","following_url":"https://api.github.com/users/orcolom/following{/other_user}","gists_url":"https://api.github.com/users/orcolom/gists{/gist_id}","starred_url":"https://api.github.com/users/orcolom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcolom/subscriptions","organizations_url":"https://api.github.com/users/orcolom/orgs","repos_url":"https://api.github.com/users/orcolom/repos","events_url":"https://api.github.com/users/orcolom/events{/privacy}","received_events_url":"https://api.github.com/users/orcolom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-30T19:21:25Z","updated_at":"2015-04-30T19:21:25Z","closed_at":null,"body":"there is no safe way to get DebugUser and DebugToken.\r\nthis would handy in some cases.\r\n\r\n`Manager.DebugUser`\r\n\r\nthis should protect it to not work outside of editor. (with my c++ knowledge)\r\n`\r\nget{ \r\n#if  UNITY_EDITOR\r\n    return DebugUser;\r\n#else\r\n    return \"\";\r\n#endif\r\n}\r\n`\r\n\r\nthere may be better ways to do this.  (are probably) "}}