Function agent(opt?: AgentCompOpt): AgentComp An agent which can finds it way on a tilemap.param opt- Options for the agent component. See returns The agent comp.since v3000.0group Components