Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. public class nnn : MonoBehaviour
  3. {
  4. [Serializable]
  5. public class Shit<T, K>
  6. {
  7. public T val1;
  8. public T val2;
  9. }
  10.  
  11. void Start()
  12. {
  13. var shit = new Shit<string, string>()
  14. {
  15. val1 = "kkk",
  16. val2 = "kokkj"
  17. };
  18. var serialized = JsonUtility.ToJson(shit);
  19. Debug.LogError(serialized);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement