예제 #1
0
 public override void InitPlayback(StateTransition transition)
 {
     if (mode == Mode.EConsumeOnly)
     {
         controller.resources[resourceId].Spend(cost);
     }
     if (mode != Mode.ECheckOnly)
     {
         controller.resources[resourceId].Spend(cost);
     }
 }
예제 #2
0
        public override void InitPlayback(StateTransition transition)
        {
            lastMarker = marker;
            lastMarker.InitJump(controller.GetBody());
            initPosition  = controller.transform.position;
            finalPosition = lastMarker.GetDestinationVector(initPosition, normal);


            Vector2 toFinal = -(initPosition - finalPosition).normalized;

            controller.GetMovement().ApplyExternalRotationI(toFinal);
            final = false;
        }
예제 #3
0
 public virtual void InitPlayback(StateTransition transition)
 {
 }
예제 #4
0
 public State AddTransition(StateTransition transition)
 {
     transitions.Add(transition); return(this);
 }
 public override void InitPlayback(StateTransition transition)
 {
     controller.RestartCdAll();
 }
 public override void InitPlayback(StateTransition transition)
 {
     controller.appliedStatesCount++;
 }
 public override void InitPlayback(StateTransition transition)
 {
     controller.PlayAnimation(animCode);
 }
 public override void InitPlayback(StateTransition transition)
 {
     randed = Random.Range(0, animCodes.Length);
     controller.PlayAnimation(animCodes[randed]);
 }
 public override void InitPlayback(StateTransition transition)
 {
     used = false;
 }
 public override void InitPlayback(StateTransition transition)
 {
     damaged = false;
     atAnim  = true;
     controller.ModifyPainAccumulator(damageAccumulatorChange);
 }