Ejemplo n.º 1
0
    void Lander()
    {
        //
        if (updown > 0)
        {
            StartCoroutine("Shot2");
            updown = 0f;
            anm.Land();
        }
        //transform.position = new Vector2 (transform.position.x, transform.position.y );

        rg.velocity = new Vector2(0, 0);
    }
Ejemplo n.º 2
0
    void Lander()
    {
        //
        if (updown > 0)
        {
            //
            updown = 0f;
            anm.Land();
        }
        //transform.position = new Vector2 (transform.position.x, transform.position.y );

        rg.velocity = new Vector2(rg.velocity.x, 0);
    }
Ejemplo n.º 3
0
 void Lander()
 {
     anm.Land();
     rg.velocity = new Vector2(0, 0);
     spd         = 0;
 }