private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }
private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); foreach (Tool_Map tm in tool_map) { TT_Sprite.Add(tm.tool, tm.sprite); TT_Name.Add(tm.tool, tm.name); TT_Description.Add(tm.tool, tm.description); } }