Exemplo n.º 1
0
    public override void Close()
    {
        if (!Valid)
        {
            return;
        }
        uint tick = GameLogicAPI.getTickCount();

        if (m_camera != null)
        {
            if (tick < mEndTick)
            {
                m_camera.finishEffect((uint)cameraConfig.effectFinishTick);
            }
            else
            {
                CameraEffectUtil.MainInstance.stopEffect();
            }

            SoldierCamera.MainInstance <SoldierCamera>().EnableMode(CameraMode.CameraAnim, false);
        }

        base.Close();
    }