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