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();
    }
Esempio 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;
            }
        }
    }
Esempio 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);
 }
Esempio n. 8
0
 public override void Enter(CharControlMotor player)
 {
     player.attacking = false;
     player.ChangeBounds(0);
     player.UpdateDirection(player.velocity.x);
 }
Esempio n. 9
0
 public override void Enter(CharControlMotor player)
 {
     player.attacking = true;
     player.ChangeBounds(1);
     player.particles.brakeSmoke.Play();
 }