예제 #1
0
파일: Gun.cs 프로젝트: noc7c9/code-red-II
 void Start()
 {
     muzzleFlash                  = GetComponent <MuzzleFlash>();
     shotsRemainingInBurst        = stats.burstCount;
     nextShotTime                 = Time.time;
     triggerReleasedSinceLastShot = true;
 }
예제 #2
0
 void Start()
 {
     muzzleFlash                  = GetComponent <MuzzleFlash>();
     shotsRemainingInBurst        = burstCount;
     projectilesRemainingInMag    = projectilesPerMag;
     nextShotTime                 = Time.time;
     triggerReleasedSinceLastShot = true;
 }