Ejemplo n.º 1
0
    public void SetData(TakePhotoGameStateVo vo, TakePhotosGameShowState state, bool isFinished = false)
    {
        SetStep(0);
        _isFinished = isFinished;

        SetAccuracy(vo.accuracy, state);
        SetScore(vo.score);
        ClientTimer.Instance.DelayCall(() => { DoNext(); }, 1.5f);
        ClientTimer.Instance.DelayCall(() => { DoNext(); }, 3f);
    }
Ejemplo n.º 2
0
    public TakePhotoGameStateVo SetStateVo(TakePhotosGameShowState state, int accuracy)
    {
        var vo = _takePhotoGameStateVos.Find((m) => { return(m.showState == state); });

        if (vo == null)
        {
            vo           = new TakePhotoGameStateVo();
            vo.showState = state;
            vo.accuracy  = accuracy;
            vo.score     = GetScore(accuracy);//通过计算出分数
            _takePhotoGameStateVos.Add(vo);
        }

        if (state == TakePhotosGameShowState.Blur)
        {
            isFinished = true;
        }

        return(vo);
    }