Ejemplo n.º 1
0
 public static void Lap()
 {
     activeTimer = false;
     MapCreate2.SetInactive();
     MainOverlay.SetInactive();
     FinishRace.SetActive();
     FinishRace.SetFinishTime(time);
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (activeTimer)
     {
         time += Time.deltaTime;
         MainOverlay.SetTime(time);
     }
 }
Ejemplo n.º 3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (biliDanmu == null)
     {
         biliDanmu = new MainOverlay();
         biliDanmu.OpenOverlay();
         biliDanmu.Show();
     }
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     if (instance == null)
     {
         instance = GetComponent <MainOverlay>();
     }
     else
     {
         Destroy(gameObject);
     }
     SetInactive();
 }
Ejemplo n.º 5
0
        private void ExcelFormWithNotify_Load(object sender, EventArgs e)
        {
            //PlotPlatoWindow plotPlato = new PlotPlatoWindow();
            //plotPlato.Show();

            return;
            if (biliDanmu==null)
            {
                biliDanmu = new MainOverlay();
                biliDanmu.OpenOverlay();
                biliDanmu.Show();
            }
           
        }
Ejemplo n.º 6
0
 private void GenerateLevel()
 {
     SetConstants();
     SetAugLines();
     MakeFloor();
     MakeTrack();
     CreatePortal();
     CreateCheckPoints();
     SetCheckpoints();
     Spawn();
     playContainer.gameObject.SetActive(true);
     MainOverlay.SetActive();
     idcanvas.SetActive(false);
     CountdownCanvasScript.SetActive();
 }
Ejemplo n.º 7
0
 public async void CloseOverlay(bool shutdown)
 {
     if (this.overlay == null)
         return;
     var overlay = this.overlay;
     this.overlay = null;
     await MainDispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>
     {
         overlay.Resources["UseBackupAnimation"] = !shutdown;
         overlay.Close();
         overlay = null;
     }));
 }
Ejemplo n.º 8
0
 public async void OpenOverlay()
 {
     OnMarquee = null;
     await MainDispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>
     {
         var overlay = new MainOverlay();
         overlay.Background = System.Windows.Media.Brushes.Transparent;
         var mainOverlayHeight = (double)App.Current.Resources["MainOverlayHeight"];
         overlay.Top = SystemParameters.WorkArea.Height - mainOverlayHeight;
         overlay.Left = SystemParameters.WorkArea.Left;
         overlay.Show();
         OnMarquee += overlay.Marquee;
         this.overlay = overlay;
     }));
 }