2883 {
2885
2886 if (!action)
2887 {
2888 Debug.LogError(
"Action " + actionName +
" dosn't exist!");
2889 return;
2890 }
2891
2893 if (!ai)
2894 {
2896 return;
2897 }
2899
2900 if (!action_array)
2901 {
2902 action_array = new array<ActionBase_Basic>;
2904 }
2905
2906 if ( LogManager.IsActionLogEnable() )
2907 {
2908 Debug.ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
2909 }
2910 action_array.Insert(action);
2911 }
void ActionManagerBase(PlayerBase player)
TInputActionMap m_InputActionMap