Hello! Thank you for taking time to read (and hopefully give clear answers to) this thread.
Here is my problem: I am in the midst of creating a game with Unity3D and I am more or less in-charge of the backend systems, hence usage of Player.IO
I need to put the codes from the PIO API into separate classes. So like, I would then have Login.cs and Register.cs and Chat.cs etc
My question is: If the login script for Unity/PIO is returning a connection token, how do I throw that token back to the class which is calling the Login function from the Login.cs class?
i.e. GameManager.cs calls login.LoginUser(username, password). What should LoginUser(username, password) return? A Connection? Or a bool ? I'm currently using bool as the return type, but will the Connection be passed along (logically speaking, I doubt that the connection token is being passed back to GameManager.cs)
Thank you =)