I have created a function or Task on an Actor. I would like to access the local variable of that function or task in another task where the task is written on another actor. How can I do that?
I want to know the purpose of the following function. Here TransportPtr is pointer of function which is written in another actor. m_Train is member variable of current task.
TransportPtr myTransport = Transport::ComponentCast(m_Train);