public void SetTransparencyTransitionData(SetTransparencyTransitionDataEvent evt, NotTransitionRendererNode renderer)
        {
            TransparencyTransitionComponent transparencyTransition = new TransparencyTransitionComponent();

            this.SetTransparencyTransitionData(evt, renderer, transparencyTransition);
            renderer.Entity.AddComponent(transparencyTransition);
            base.ScheduleEvent <TransparencyInitEvent>(renderer.Entity);
        }
 private void SetTransparencyTransitionData(SetTransparencyTransitionDataEvent evt, RendererNode renderer, TransparencyTransitionComponent transparencyTransition)
 {
     transparencyTransition.OriginAlpha = evt.OriginAlpha;
     transparencyTransition.TargetAlpha = evt.TargetAlpha;
     transparencyTransition.TransparencyTransitionTime = evt.TransparencyTransitionTime;
     renderer.baseRenderer.Renderer.enabled            = true;
     transparencyTransition.AlphaSpeed   = (transparencyTransition.TargetAlpha - transparencyTransition.OriginAlpha) / transparencyTransition.TransparencyTransitionTime;
     transparencyTransition.CurrentAlpha = transparencyTransition.OriginAlpha;
 }
 public void SetTransparencyTransitionData(SetTransparencyTransitionDataEvent evt, TransitionRendererNode renderer)
 {
     this.SetTransparencyTransitionData(evt, renderer, renderer.transparencyTransition);
     base.ScheduleEvent <TransparencyInitEvent>(renderer.Entity);
 }