Advertisement
diegographics

Untitled

Apr 7th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. void Start()
  2.     {
  3.         ClassConstruction.Item Metal = null;
  4.         System.Collections.Generic.Dictionary<Level, string> Metal_Name = null;
  5.         System.Collections.Generic.Dictionary<Level, string> Metal_Description = null;
  6.  
  7.         Metal_Name.Add(Level.Level01, "Metall");
  8.         Metal_Name.Add(Level.Level02, "Schwer Metall");
  9.         Metal.object_name = Metal_Name;
  10.         Metal_Description.Add(Level.Level01, "Herkömmliches Metall");
  11.         Metal_Description.Add(Level.Level02, "Schwer Metall für höhere Stabilität");
  12.         Metal.object_description = Metal_Description;
  13.         UnityEngine.Debug.Log(UnityEngine.JsonUtility.ToJson(Metal));
  14.     }
  15.  
  16.  
  17. // Der Fehler:
  18. NullReferenceException: Object reference not set to an instance of an object
  19. ClassConstruction.Start () (at Assets/ShelfConstructor/Native_WORKSPACE/ClassConstruction.cs:18)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement