Advertisement
centner_dc

IJunior_SwampAttack_NewWeapon

Nov 1st, 2020
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. namespace Player.Weapon
  4. {
  5.     public class Shotgun : BaseWeapon
  6.     {
  7.         public override void Shoot(Transform shootPoint)
  8.         {
  9.             Instantiate(Bullet, shootPoint.position,
  10.                 Quaternion.Euler(0f, 0f, 7f));
  11.             Instantiate(Bullet, shootPoint.position, Quaternion.identity);
  12.             Instantiate(Bullet, shootPoint.position,
  13.                 Quaternion.Euler(0f, 0f, -7f));
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement