示例#1
0
 private void btnNext_Click(object sender, RoutedEventArgs e)
 {
     if (NextEvent != null)
     {
         NextEvent.Invoke();
     }
 }
示例#2
0
    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);
    }
示例#3
0
 public void Next()
 {
     if (enabled && gameObject.activeSelf)
     {
         next.Invoke();
         tutorial.Next();
     }
 }
示例#4
0
 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();
     }
 }
示例#6
0
        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);
        }
示例#7
0
 private void NextButtonClick(object sender, RoutedEventArgs e)
 {
     NextEvent?.Invoke();
 }