Game Development Reference
In-Depth Information
Initializing senses
Initializing our agent's senses will follow a functional paradigm that is very similar to what
we've used previously. Passing our
userData
table inside our initialization function will
provide any custom per agent data we'll need going forward:
AgentSenses.lua
:
function AgentSenses_InitializeSenses(userData)
end