public void AddParam(string key, Func <object> valueGetter) { if (!useForm) // SetForm을 거치지 않은 경우 { // id 마저도 설정하지 않았다면 에러 if (!useId) { Debug.LogError("문제 | 이전에 Form이 설정되지 않음"); Debug.LogError("해결 | SetForm혹은 SetId 통해 미리 Form을 설정하거나, AddParam을 호출하지 않아야함"); return; } ts = new TransString(translated); useForm = true; } ts.AddParam(key, valueGetter); }
// 번역테이블에서 들고오는 id값 없이 // 바로 Form을 설정. // Form을 설정했다는 것은 이후에 AddParam이 이어지기 때문에 // UpdateText를 하지 않음 public void SetForm(string form) { useForm = true; ts = new TransString(form); }