Beispiel #1
0
    void Shoot(Vector2 localUp)
    {
        Instantiate(nextBullet, transform.position + new Vector3(localUp.x, localUp.y, 0.0f) * 0.5f, transform.rotation);
        timer = 0.0f;
        rb.AddForce(-localUp * ShootingKick);
        playerReload.Reload();
        soundManager.PlayShoot();

        nextBullet = Bullet;
    }