public void LockScreen(NodeRemoveEvent e, ActiveNotificationNode notification) { if ((notification.lockScreenNotification.ScreenEntity != null) && notification.lockScreenNotification.ScreenEntity.HasComponent <LockedScreenComponent>()) { notification.lockScreenNotification.ScreenEntity.RemoveComponent <LockedScreenComponent>(); } }
public void LockScreen(NodeAddedEvent e, [Combine] ActiveNotificationNode notification, ScreenNode screen) { if (!screen.Entity.HasComponent <LockedScreenComponent>()) { screen.Entity.AddComponent <LockedScreenComponent>(); notification.lockScreenNotification.ScreenEntity = screen.Entity; } }
public void CloseNotificationOnBattleScreen(NodeAddedEvent evt, [Combine] ActiveNotificationNode notification, BattleResultsScreenNode screen) { base.ScheduleEvent <CloseNotificationEvent>(notification); }