protected void BeginMuzzleVFX() { if (muzzleFlash == false) { muzzleFlash = Instantiate(muzzleFlashSFX, firePoint.position, firePoint.rotation).GetComponent <MuzzleFlash>(); muzzleFlash.transform.SetParent(firePoint); muzzleFlash.Init(); } muzzleFlash.BeginMuzzleFash(flashDuration, firePoint); }