Hi,
problem is that WRobot don't unload loaded dll (or code), if you start/stop several times your code will don't found what dll use.
You can try to use "Var" like that (no tested):
public void Initialize()
{
robotManager.Helpful.Var.SetVar("TakeDeepRunTram", new Action(() => TakeDeepRunTram()));
}
public static void TakeDeepRunTram()
{
//code to enter portal, take tram and leave through other portal
}
in offmesh use:
c#: robotManager.Helpful.Var.Var.GetVar<Action>("TakeDeepRunTram")();