示例#1
0
    void IPop.Pop()
    {
        pool.ReleaseAll();

        if (mLoadedTexture)
        {
            Destroy(mLoadedTexture);
            mLoadedTexture = null;
        }

        if (mResultCallback != null)
        {
            var cb = mResultCallback;
            mResultCallback = null;

            cb(mIsAnswerCorrect);
        }

        if (mPaused)
        {
            M8.SceneManager.instance.Resume();
            mPaused = false;
        }
    }