/// <summary> /// Constructor, takes a lua function. /// </summary> /// <param name="fun">Lua function running the task.</param> public GroundScriptedTask(NLua.LuaFunction fun) { Status = EStatus.Waiting; Task = new TransientScriptEvent(fun); }
/// <summary> /// Constructor, takes a script event and run it as a task! /// </summary> /// <param name="ev">The TransientScriptEvent that runs the task.</param> public GroundScriptedTask(TransientScriptEvent ev) { Status = EStatus.Waiting; Task = ev; }