예제 #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);
        }
예제 #2
0
 private void UpdateImageAlpha(float a, ShaftAimingReticleEffectComponent effect)
 {
     effect.ReticleGroup.alpha = a;
 }
예제 #3
0
        public void SetEffectOpaque(NodeAddedEvent evt, ShaftAimingWorkingReticleEffectNode weapon)
        {
            ShaftAimingReticleEffectComponent shaftAimingReticleEffect = weapon.shaftAimingReticleEffect;

            this.UpdateImageAlpha(1f, shaftAimingReticleEffect);
        }