Exemple #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);
     }
 }
        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;
        }
Exemple #3
0
 public virtual void InitPlayback(StateTransition transition)
 {
 }
Exemple #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);
 }