private void btnNext_Click(object sender, RoutedEventArgs e) { if (NextEvent != null) { NextEvent.Invoke(); } }
private void Start() { //TODO:动态读取 current = 0; if (gameObject.CompareTag("Player")) { Item item = GetCurrentItem(); if (item != null) { NextItemEvent.Invoke(GetCurrentItem()); } } rhWeapons = am.wm.GetWeapons(true); lhWeapons = am.wm.GetWeapons(false); }
public void Next() { if (enabled && gameObject.activeSelf) { next.Invoke(); tutorial.Next(); } }
void NextPressed() { if (!isShowingText && !isShowingImage) { return; } HideText(); HideImage(); OnNext?.Invoke(); }
private void OnNextButtonClicked() { if (_scenarioController.UseInGameQuestionnaire && _scenarioController.CurrentLevel % 5 == 0) { InGameQuestionnaire?.Invoke(); } else { NextEvent?.Invoke(); } }
public Part Next() { Part part = null; lock (_parts) { if (_parts.TryGetValue(_index, out var bytes)) { _parts.Remove(_index); part = new Part(_index++, bytes); NextEvent?.Invoke(this, EventArgs.Empty); } } return(part); }
private void NextButtonClick(object sender, RoutedEventArgs e) { NextEvent?.Invoke(); }