Beispiel #1
0
 public void InitBulletInControl(Vector3 DirecShot, Vector3 AngleShoot, float Velocity, float SpeedMoveTween, float Damage)
 {
     currentBullet = SimplePool.Spawn(prefabBullet, shotPos.position, Quaternion.identity);
     currentBullet.SetBulletControl(this);
     currentBullet.transform.SetParent(transform);
     currentBullet.SetBaseBulletVelocity(DirecShot, AngleShoot, Velocity, SpeedMoveTween);
     currentBullet.SetBulletDame(Damage);
     currentBulletQuantity++;
 }