コード例 #1
0
ファイル: Util.cs プロジェクト: mrivantan/ma_fun
        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);
        }
コード例 #2
0
ファイル: OneDollar.cs プロジェクト: mrivantan/ma_fun
 public void InitOneDollar()
 {
     model       = new Model();
     currentMeta = model.strokeDictionary[PlayerPrefs.GetString("StrokeName", StrokeType.name_H)];
 }