loicteixeira / gj-unity-api

[MOVED] Game Jolt API wrapper for Unity.
https://github.com/InfectedBytes/gj-unity-api/
MIT License
16 stars 13 forks source link

DebugUser & DebugToken #32

Closed ghost closed 9 years ago

ghost commented 9 years ago

there is no safe way to get DebugUser and DebugToken. this would handy in some cases.

Or allow to access a 'GJAPI.object.user DebugUser;'

this should protect it to not work outside of editor. (with my c++ knowledge) ` get{

if UNITY_EDITOR

return DebugUser;

else

return "";

endif

} `

there may be better ways to do this. (are probably)

loicteixeira commented 9 years ago

At the moment, Manager.DebugUser and Manager.DebugToken are only created when you are inside the editor but are private. I guess I could indeed make it public if people believe it can be useful.