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 HideScreenForeground(HideScreenForegroundEvent e, ForegroundNode foreground)
 {
     if (foreground.screenForeground.Count > 0)
     {
         foreground.screenForeground.Count--;
     }
     if (foreground.screenForeground.Count == 0)
     {
         HideForeground(foreground);
     }
 }
Exemple #3
0
 public void ForceHideScreenForeground(ForceHideScreenForegroundEvent e, ForegroundNode foreground)
 {
     foreground.screenForeground.Count = 0;
     HideForeground(foreground);
 }
Exemple #4
0
        public void SendShowScreenEvent(NodeAddedEvent e, SingleNode <ShowScreenForegroundComponent> screen, [JoinAll] ForegroundNode foreground)
        {
            ShowScreenForegroundEvent eventInstance = new ShowScreenForegroundEvent {
                Alpha = screen.component.Alpha
            };

            base.ScheduleEvent(eventInstance, foreground);
        }
Exemple #5
0
 public void SendHideScreenEvent(NodeRemoveEvent e, SingleNode <ShowScreenForegroundComponent> screen, [JoinAll] ForegroundNode foreground)
 {
     base.ScheduleEvent <HideScreenForegroundEvent>(foreground);
 }
Exemple #6
0
 private static void HideForeground(ForegroundNode foreground)
 {
     foreground.screenForegroundAnimation.Animator.SetBool("visible", false);
 }