Exemple #1
0
            public void OnEvent(bool isAccept)
            {
                //Debug.Log("Close event");
                //_playerHolder.IsClassroom = true;
                //OnClose();
                if (_currEvent == null || _currEvent.Buttons.Count < 2)
                {
                    Debug.Log("Close event");
                    _playerHolder.IsClassroom = true;
                    OnClose();
                }
                Page page;

                if (isAccept)
                {
                    page = _currEvent?.Buttons[0]?.OnClickFunc(_context);
                }
                else
                {
                    page = _currEvent?.Buttons[1]?.OnClickFunc(_context);
                }
                ConcreteView.SetEventText(page?.Title);
                Debug.Log(page?.Title);
                _currEvent = null;
            }
Exemple #2
0
 public override void Open(Dictionary <string, object> callData)
 {
     _playerHolder.IsClassroom = false;
     _currEvent = _eventsStore.GetEvent();
     if (_currEvent != null)
     {
         ConcreteView.SetEventText(_currEvent.Title);
     }
 }