コード例 #1
0
 public IEnumerator CoroutineStartShooting(ParticleShooter shooter)
 {
     while (true)
     {
         shooter.Shoot();
         yield return(new WaitForSeconds(shooter.DelayInSeconds));
     }
 }
コード例 #2
0
ファイル: RangeWeapon.cs プロジェクト: BasicLich/UNcertainty
 private void Start()
 {
     particleShooter        = GetComponentInChildren <ParticleShooter>();
     shooter                = GetComponentInChildren <ParticleSystem>();
     particleShooter.damage = damage;
 }