dictionary in unity code example
Example 1: unity list
GameObject Obj;
List<GameObject> Objects = new List<GameObject>();
Objects.Add(Obj);
Example 2: dictionary in c# unity
public class ScriptA : MonoBehaviour{
public Dictionary<string, GameObject> dictio = new Dictionary<string, GameObject>();
}
Example 3: Dictionaries in unity
Dictionary<keyClass,valueClass> dictionaryName;
dictionaryName = new Dictionary<keyClass,valueClass>();