Based on the Mantic Manfred Demo project for Articy 3, it's use the function "Restart()", wich it's map automaticly with the method in SceneHandler.
I would like to do pass some parameters or have a return. So I try : Inventory.test = restart(Inventory.test). No error in Articy
When I export, in Articy Script Fragment, I got the good method with return type and parameters in the #region Script fragments. But in the #region Script methods implementation , I don't have a method with parameters and return type.
So I have miss anything wich permit to do that?
I think I can ByPass That By Make some globalVariable Parameters and return for each function call like that, but it's feel dirty
Thank you
- Code: Select all
public void Script_oRt7JsX7YkCaGGRA70XtOA(ArticyGlobalVariables aGlobalVariablesState, Articy.Unity.IBaseScriptMethodProvider aMethodProvider)
{
aGlobalVariablesState.Inventory.test = restart(aMethodProvider, aGlobalVariablesState.Inventory.test);
}
- Code: Select all
#region Script methods implementation
private void restart(Articy.Unity.IBaseScriptMethodProvider aMethodProvider)
{
if ((aMethodProvider != null))
{
((IScriptMethodProvider)(aMethodProvider)).restart();
}
}
#endregion