public void ShowScreenForeground(ShowScreenForegroundEvent e, ForegroundNode foreground) { foreground.screenForeground.Count++; ScreenForegroundAnimationComponent screenForegroundAnimation = foreground.screenForegroundAnimation; screenForegroundAnimation.Animator.SetBool("visible", true); screenForegroundAnimation.Alpha = e.Alpha; }
public void SendShowScreenEvent(NodeAddedEvent e, SingleNode <ShowScreenForegroundComponent> screen, [JoinAll] ForegroundNode foreground) { ShowScreenForegroundEvent eventInstance = new ShowScreenForegroundEvent { Alpha = screen.component.Alpha }; base.ScheduleEvent(eventInstance, foreground); }