예제 #1
0
    public static string Serialize(SecretJson model)
    {
        string json = JsonUtility.ToJson(model);

        return(json);
    }
예제 #2
0
 public void Start()
 {
     this.secretString   = Resources.Load <TextAsset>(this.secretFile.name).ToString();
     this.secretJson     = SecretJson.Deserialize(this.secretString);
     this.similarWordUrl = $"{this.secretJson.url}/similar-word/";
 }
예제 #3
0
    public static SecretJson Deserialize(string json)
    {
        SecretJson model = JsonUtility.FromJson <SecretJson>(json);

        return(model);
    }