private static void OnActionSuccess(CompiledAction action, Transform transform) { if (action.direction != IntVector2.Zero) { transform.Reorient(action.direction); } }
public void ResetAction(Entity actor, ref CompiledAction currentAction) { if (!MaybeRemoveImmediately(actor) && currentAction.GetStoredAction().ActivatesEither(AffectedActions)) { currentAction = currentAction.WithAction( Compose(UAction, currentAction.GetStoredAction())); } }
public void SlideInstead(ref CompiledAction currentAction) { currentAction = Compose(Action, currentAction.GetStoredAction()).Compile(directionOfSliding); }