void shoot() { if (Input.GetKeyDown(data._keys.Shoot) && data.GetPos() != playerData.Pos.none) //shoot { body.AddForce(data.GetOppositePlayerPos() * shootStrength, ForceMode2D.Impulse); autoShootTimer = 0; data.SetPlayerPos(playerData.Pos.none); data.SetAnimation("fly"); shootVel = body.velocity; music.playMusic("shoot"); } }
public void pooping() { music.playMusic("poop"); Instantiate(poop, transform.position, transform.rotation); }