Beispiel #1
0
        public void LaunchEffect(NodeAddedEvent evt, ShaftAimingWorkActivationReticleEffectNode weapon)
        {
            ShaftAimingReticleEffectComponent shaftAimingReticleEffect = weapon.shaftAimingReticleEffect;

            this.UpdateImageAlpha(0f, shaftAimingReticleEffect);
            shaftAimingReticleEffect.InstanceReticle.SetActive(true);
            shaftAimingReticleEffect.ReticleAnimator.SetFloat("Time", weapon.shaftEnergy.UnloadAimingEnergyPerSec);
        }
Beispiel #2
0
 private void UpdateImageAlpha(float a, ShaftAimingReticleEffectComponent effect)
 {
     effect.ReticleGroup.alpha = a;
 }
Beispiel #3
0
        public void SetEffectOpaque(NodeAddedEvent evt, ShaftAimingWorkingReticleEffectNode weapon)
        {
            ShaftAimingReticleEffectComponent shaftAimingReticleEffect = weapon.shaftAimingReticleEffect;

            this.UpdateImageAlpha(1f, shaftAimingReticleEffect);
        }