Exemple #1
0
        public void ShowScreenForeground(ShowScreenForegroundEvent e, ForegroundNode foreground)
        {
            foreground.screenForeground.Count++;
            ScreenForegroundAnimationComponent screenForegroundAnimation = foreground.screenForegroundAnimation;

            screenForegroundAnimation.Animator.SetBool("visible", true);
            screenForegroundAnimation.Alpha = e.Alpha;
        }
Exemple #2
0
        public void SendShowScreenEvent(NodeAddedEvent e, SingleNode <ShowScreenForegroundComponent> screen, [JoinAll] ForegroundNode foreground)
        {
            ShowScreenForegroundEvent eventInstance = new ShowScreenForegroundEvent {
                Alpha = screen.component.Alpha
            };

            base.ScheduleEvent(eventInstance, foreground);
        }