Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Experiments : MonoBehaviour
- {
- private static Dictionary<string, string> _dict1 = new Dictionary<string, string>();
- void Start()
- {
- TestDict();
- DictResult();
- }
- void TestDict()
- {
- Dictionary<string, string> newDict = new Dictionary<string, string>();
- newDict = _dict1;
- newDict.Add("String1", "string1 Val");
- }
- void DictResult()
- {
- Debug.Log("Output keys");
- foreach(string key in _dict1.Keys)
- {
- Debug.Log(key + ": " + _dict1[key]);
- }
- Debug.Log("End keys");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement