Exemplo n.º 1
0
 public void UseSkill3()
 {
     playerShooter.gun.gunAudioPlayer.PlayOneShot(playerShooter.gun.shotClip);
     for (int i = 0; i < skill3BallNum; i++)
     {
         GameObject _ball     = Instantiate(fireBall, playerShooter.gun.muzzleFlash.transform.position + transform.forward * 2, Quaternion.identity);
         FireBall   _fireBall = _ball.GetComponent <FireBall>();
         _fireBall.SetVelocity(Camera.main.transform.forward, 0.3f);
         _fireBall.Set(skill3Damage);
         _fireBall.SetRemoveTime(2);
     }
 }