Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         if (arenaScirpt.enemiesInArena > 0 && !arenaScirpt.activated)
         {
             StartCoroutine(arenaScirpt.Activate());
         }
     }
 }
Example #2
0
 public static void OpenArena()
 {
     logger.Trace("Open arena");
     if (IsWindowOpen <Arena>())
     {
         _arena.Close();
     }
     _arena = new Arena(Client.ArenaAdmin);
     Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => _arena.Show()));
     Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => _arena.Activate()));
 }