Пример #1
0
    public static string GetPhotoResoucePath(TakePhotoRulePB pb)
    {
        string path = "";

        if (pb.IsEvo == 0)
        {
            path = "Card/Image/" + pb.PictureId;
        }
        else
        {
            path = "Card/Image/EvolutionCard/" + pb.PictureId;
        }
        return(path);
    }
Пример #2
0
    public TakePhotoGamePhotoVo(TakePhotoRulePB takePhotoRulePB)
    {
        _takePhotoGameStateVos = new List <TakePhotoGameStateVo>();
        _takePhotoRulePB       = takePhotoRulePB;

        //Debug.LogError(_takePhotoRulePB.Coordinate);
        scale = (float)_takePhotoRulePB.Gain;
        var strs = _takePhotoRulePB.Coordinate.Split(',');

        if (strs.Length < 2)
        {
            Debug.LogError("  TakePhotoGamePhotoVo  Strs length is error   ");
        }
        targetPos.x = -int.Parse(strs[0]) * scale;
        targetPos.y = -int.Parse(strs[1]) * scale;
        resoucePath = GetPhotoResoucePath(_takePhotoRulePB);
        isFinished  = false;
    }