public static StrokeMeta GetMetaByIndex(this Dictionary <string, StrokeMeta> dictionary, int index) { StrokeMeta result = dictionary["h"]; foreach (KeyValuePair <string, StrokeMeta> kvp in dictionary) { StrokeMeta datum = kvp.Value; if (datum.index == index) { result = datum; break; } } return(result); }
public void InitOneDollar() { model = new Model(); currentMeta = model.strokeDictionary[PlayerPrefs.GetString("StrokeName", StrokeType.name_H)]; }