public static void ExecuteActionNPC(ModelNPC.PersonData dataNPC, NameActionsPerson p_nameAction, GameActionPersonController controller, bool isForce = false) { if (isForce && controller != null) { controller.ResetAction(); } if (controller != null) { controller.ActionPerson = p_nameAction; } dataNPC.CurrentAction = p_nameAction.ToString(); }
public static void RequestActionNPC(ModelNPC.PersonData dataNPC, NameActionsPerson p_nameAction, GameActionPersonController controller, bool isForce = false) { if (isForce) { controller.ResetAction(); } if (p_nameAction != NameActionsPerson.Completed) { AddActionNPC(dataNPC, p_nameAction); } if (controller != null) { controller.ActionPerson = NameActionsPerson.Completed; } dataNPC.CurrentAction = NameActionsPerson.Completed.ToString(); }