public void DoQuestion() { if (_showQuestion) { _questionAgent?.CloseReminder(); } else { _questionAgent = Instantiate(_questionPrefab, _questionContainer); _questionAgent.Init(OnQuestionClose); _questionAgent.ShowReminder(QuestionTypeEnum.ScalePanel); _showQuestion = true; } }
public void DoQuestion() { if (_cardAgent.CardStatus == CardStatusEnum.DESTORYINGFIRST) { _onUpdate.Invoke(); } else { if (_showQuestion) { _questionAgent?.CloseReminder(); } else { _questionAgent = Instantiate(_questionPrefab, _questionContainer); _questionAgent.Init(OnQuestionClose); _questionAgent.ShowReminder(QuestionTypeEnum.SearchPanel); _showQuestion = true; } } }
public void DoQuestion() { if (CardStatus == CardStatusEnum.NORMAL) { if (_showQuestion) { _questionAgent?.CloseReminder(); _showQuestion = false; _inExtendOpen = false; } else { _questionAgent = Instantiate(_questionAgentPrefab, _question_container); _questionAgent.Init(OnQuestionClose); _questionAgent.ShowReminder(_questionTypeEnum); _showQuestion = true; _inExtendOpen = true; } DoUpdate(); } }