unity dictionaries code example
Example 1: how to create a list in c# unity
List<Datatype> listName = new List<Datatype>();
ex: List<float> myList = new List<float>();
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>();