Esempio n. 1
0
 public Scoreboard(string guidFromMain = "", Classes.CustomSnapshotRoot root = null)
 {
     guid = guidFromMain;
     Classes.Logger.addLog("Opened scoreboard on server -> " + guid);
     InitializeComponent();
     if (root != null)
     {
         Classes.ScoreboardRenderer render = new Classes.ScoreboardRenderer(this, root.snapshot.mapId, root);
         Classes.Logger.addLog("Enabled initial render: ");
     }
     else
     {
         _timer          = new System.Timers.Timer(3000);
         _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
         _timer.Enabled  = true; // Enable it
         _timer_Elapsed(this, null);
     }
     if (MainWindow.keeperSettings.ScoreboardBackgrounds == false)
     {
         BackgroundAnimation.Stop();
         BackgroundAnimation.Visibility = Visibility.Hidden;
     }
     else
     {
         BackgroundAnimation.Play();
     }
 }
Esempio n. 2
0
        private IEnumerator startBackgroundAnimation()
        {
            yield return(new WaitForSeconds(3f));

            BackgroundAnimation.clip = BackgroundAnimation.GetClip("TitleviewFadeOut");
            BackgroundAnimation.Play();
            StartCoroutine(startPlayerWalkAnimation());
        }