コード例 #1
0
 public void LockScreen(NodeRemoveEvent e, ActiveNotificationNode notification)
 {
     if ((notification.lockScreenNotification.ScreenEntity != null) && notification.lockScreenNotification.ScreenEntity.HasComponent <LockedScreenComponent>())
     {
         notification.lockScreenNotification.ScreenEntity.RemoveComponent <LockedScreenComponent>();
     }
 }
コード例 #2
0
 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);
 }