Exemplo n.º 1
0
 public void ShowWarmingUpTimerNotifications(UpdateEvent e, BattleNode battle, [JoinByBattle] SelfBattleUserNode self, [JoinByBattle] RoundWarmingUpStateNode round, [JoinAll] WarmingUpTimerNotificationsNode notifications)
 {
     if (notifications.warmingUpTimerNotifications.HasNotifications())
     {
         float num = battle.battleStartTime.RoundStartTime.UnityTime - Date.Now.UnityTime;
         if (notifications.warmingUpTimerNotifications.NextNotificationTime > num)
         {
             base.ScheduleEvent <DisableOldMultikillNotificationsEvent>(notifications);
             notifications.warmingUpTimerNotifications.ShowNextNotification();
         }
     }
 }
Exemplo n.º 2
0
        public void InitNotifications(NodeAddedEvent e, BattleNode battle, [JoinByBattle, Context] RoundWarmingUpStateNode round, WarmingUpTimerNotificationsNode notifications)
        {
            float remainingTime = battle.battleStartTime.RoundStartTime.UnityTime - Date.Now.UnityTime;

            notifications.warmingUpTimerNotifications.Init(remainingTime);
        }
Exemplo n.º 3
0
 public void ShowStartBattleNotification(NodeRemoveEvent e, RoundWarmingUpStateNode round, [JoinAll] WarmingUpTimerNotificationsNode notifications)
 {
     notifications.warmingUpTimerNotifications.ShowStartBattleNotification();
 }
Exemplo n.º 4
0
 public void DeactivateNotifications(NodeRemoveEvent e, RoundWarmingUpStateNode round, WarmingUpTimerNotificationsNode notifications)
 {
     notifications.warmingUpTimerNotifications.DeactivateNotifications();
 }