Example #1
0
        private void StartFadeIn(StartFadingInEvent info)
        {
            Entities.ForEach((Entity e, ref CameraFadeParameters cameraFade) =>
            {
                cameraFade.OldFadingSpeedFactor = cameraFade.FadingSpeed;

                if (info.SpeedOverride != -1.0f)
                {
                    cameraFade.FadingSpeed = info.SpeedOverride;
                }

                EntityManager.AddComponentData(e, new CameraFadeIn());
            });
        }
Example #2
0
 protected void OnStartFadingIn(StartFadingInEvent info)
 {
     this.Enabled = true;
 }