Beispiel #1
0
    void ShootBullet()
    {
        Bullet bullet = GameObject.Instantiate <Bullet>(BulletPrefab, null);

        bullet.transform.position = this.transform.position + new Vector3(0, 1, 0);
        bullet.SetForwardDir(playerController.GetFacingDirection());

        _shootingTimer = ShootingCD;
    }