public void Clear() { _curSpellCard.Clear(); _isCastingSpellCard = false; _isWaitingForSpellCard = false; if (_isInDialogMode) { InterpreterManager.GetInstance().StopTaskThread(_dialogTask); ObjectsPool.GetInstance().RestorePoolClassToPool <Task>(_dialogTask); _dialogTask = null; _isInDialogMode = false; } InterpreterManager.GetInstance().StopTaskThread(_curStageTask); Application.targetFrameRate = 60; }