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); }
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); }
void Lander() { anm.Land(); rg.velocity = new Vector2(0, 0); spd = 0; }