Esempio n. 1
0
    public void BuildForTile(Tile t)
    {
        ID = t.GetID();
        BuildSerialData(t);
        SerialHelper Helper = new SerialHelper();

        Helper.Init(SerialFields.Count);
        int i = 0;

        foreach (KeyValuePair <string, FieldInfo> item in SerialFields)
        {
            Helper.FieldNames[i]  = item.Key;
            Helper.FieldValues[i] = GetStringOfProp(item.Value, t);
            i++;
        }
        ExtraData = JsonUtility.ToJson(Helper);
    }