public override void Enter(CharControlMotor player)
 {
     player.lookingUp  = true;
     player.attacking  = false;
     player.velocity.x = 0;
     player.ChangeBounds(1);
 }
 public override void Enter(CharControlMotor player)
 {
     player.attacking = false;
     player.ChangeBounds(0);
     player.PlayAudio(player.audios.brake);
     player.UpdateDirection(player.velocity.x);
     //player.skin.SetEulerY(90 - player.direction * 90);
     player.particles.brakeSmoke.Play();
 }
 public override void Enter(CharControlMotor player)
 {
     player.GroundExit();
     player.ChangeBounds(0);
     player.invincible   = true;
     player.halfGravity  = true;
     player.attacking    = false;
     player.GotHurtCheck = true;
 }
    public override void Enter(CharControlMotor player)
    {
        power            = 0;
        player.attacking = true;
        //player.skin.ActiveBall(true);
        player.ChangeBounds(1);
        player.PlayAudio(player.audios.spindash_charge, 0.5f);

        // Move particle emission right
        if (player.direction == -1)
        {
            player.particles.spindashSmoke.transform.localScale = new Vector3(-1, 1, 0);
        }
        // Move particle emission left
        else
        {
            player.particles.spindashSmoke.transform.localScale = new Vector3(1, 1, 0);
        }
        player.particles.spindashSmoke.Play();
    }
Exemplo n.º 5
0
    public override void Enter(CharControlMotor player)
    {
        player.attacking = true;
        player.jumped    = true;
        player.ChangeBounds(1);

        dashTimer = 0.0f;
        active    = false;
        charging  = false;

        jumpSlowDownAmount = player.velocity.x / 8;

        if (player.velocity.x != 0)
        {
            if (player.velocity.x < 0)
            {
                player.velocity.x = player.velocity.x - jumpSlowDownAmount;
            }
            else if (player.velocity.x > 0)
            {
                player.velocity.x = player.velocity.x - jumpSlowDownAmount;
            }
        }
    }
Exemplo n.º 6
0
 public override void Enter(CharControlMotor player)
 {
     player.attacking = false;
     player.ChangeBounds(0);
 }
 public override void Enter(CharControlMotor player)
 {
     player.attacking = true;
     player.jumped    = true;
     player.ChangeBounds(1);
 }
Exemplo n.º 8
0
 public override void Enter(CharControlMotor player)
 {
     player.attacking = false;
     player.ChangeBounds(0);
     player.UpdateDirection(player.velocity.x);
 }
Exemplo n.º 9
0
 public override void Enter(CharControlMotor player)
 {
     player.attacking = true;
     player.ChangeBounds(1);
     player.particles.brakeSmoke.Play();
 }