Esempio n. 1
0
        public override void Init(ICEWorldBehaviour _component)
        {
            base.Init(_component);

            LaunchSound.Init(_component);
            Ammunition.Init(_component);
            MuzzleFlash.Init(_component);
            Recoil.Init(_component);
            Effect.Init(_component);
        }
Esempio n. 2
0
    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);
    }