Callback function and launching parameters

Hi,
I have a couple of problems.

  1. I’m developing a game that needs in input the weight of a runner for modify his max speed. This game can be started by webPlayer or mobile.
    Is there a common way to specify a set of optional parameters on launching the game? So I can just make a build web and a build mobile and launch the game with the parameter weight.
    If isn’t possible, how can I launch my game with the “weight” parameter using webPlayer, Android and iOs?

  2. I’m also building a virtual office in wich the player can move and interact, designed for the WebPlayer. Clicking on different items the application must load and external JSP page with some parameters that will show some data.
    The problem is that at the end of the JSP must be placed a button like “Return to the office”, so I need to reload the unity game at the same point the player leaved before switching the context.
    All this things must be viewed in the same tab of the browser.
    Are there some kind of callback functions that allows me to “restore” the game at the same point that I leave? Or I should think about a sort of SetupFunction() that retrieves data like the player Vector3 position and rotation, inventory, etc?

Is the problem understandable?

Thank you for your help!

  1. check the manual for platform specific compile so you can set the parameters depending on platform. Launchparameters otherwise only exist on standalone and web and on the web only in the form of ‘requested from the webplayer after launching and provided by the js’ not as explicite start parameters.

Thank you for your help!

Can you also tell me something about the Mobile?