319 {
321
322 if (!action)
323 {
324 Debug.LogError(
"Action " + actionName +
" dosn't exist!");
325 return;
326 }
327
329 if (!ai)
330 {
332 return;
333 }
334
336 if (!action_array)
337 {
338 action_array = new array<ActionBase_Basic>;
340 }
341 if (LogManager.IsActionLogEnable())
342 {
343 Debug.ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action");
344 }
345
346 if (action_array.Find(action) != -1)
347 {
348 Debug.Log(
"Action " + action.Type() +
" already added to " +
this +
", skipping!");
349 }
350 else
351 {
352 action_array.Insert(action);
353 }
354 }
void ActionManagerBase(PlayerBase player)
TInputActionMap m_InputActionMap