329 {
331
332 if (!action)
333 {
334 Debug.LogError(
"Action " + actionName +
" dosn't exist!");
335 return;
336 }
337
339 if (!ai)
340 {
342 return;
343 }
344
346 if (!action_array)
347 {
348 action_array = new array<ActionBase_Basic>;
350 }
351 if (LogManager.IsActionLogEnable())
352 {
353 Debug.ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action");
354 }
355
356 if (action_array.Find(action) != -1)
357 {
358 Debug.Log(
"Action " + action.Type() +
" already added to " +
this +
", skipping!");
359 }
360 else
361 {
362 action_array.Insert(action);
363 }
364 }
void ActionManagerBase(PlayerBase player)
TInputActionMap m_InputActionMap