示例#1
0
 // Update is called once per frame
 void Update()
 {
     _timeCounter            += Time.deltaTime;
     RigidbodyBullet.velocity = getTrajectory() * Speed;
     if (_timeCounter > _bulletLifeTime)
     {
         _pool.FreeBullet(BulletType, gameObject);
     }
 }