public static void Lap() { activeTimer = false; MapCreate2.SetInactive(); MainOverlay.SetInactive(); FinishRace.SetActive(); FinishRace.SetFinishTime(time); }
// Update is called once per frame void Update() { if (activeTimer) { time += Time.deltaTime; MainOverlay.SetTime(time); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { if (biliDanmu == null) { biliDanmu = new MainOverlay(); biliDanmu.OpenOverlay(); biliDanmu.Show(); } }
// Use this for initialization void Start() { if (instance == null) { instance = GetComponent <MainOverlay>(); } else { Destroy(gameObject); } SetInactive(); }
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(); } }
private void GenerateLevel() { SetConstants(); SetAugLines(); MakeFloor(); MakeTrack(); CreatePortal(); CreateCheckPoints(); SetCheckpoints(); Spawn(); playContainer.gameObject.SetActive(true); MainOverlay.SetActive(); idcanvas.SetActive(false); CountdownCanvasScript.SetActive(); }
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; })); }
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; })); }