コード例 #1
0
ファイル: Model.cs プロジェクト: festeraddams/rahagame
        protected IDictionary <PropertyInfo, object> GetData()
        {
            IDictionary <PropertyInfo, object> data = new Dictionary <PropertyInfo, object>();

            foreach (var column in this.tableColumns)
            {
                var attribute = GetAttribute <TableColumn>(column);

                object value;

                if (attribute.GetType() == typeof(TranslationColumn))
                {
                    ((TranslationColumn)attribute).SetColumn(column.Name, LanguageSettingManager.GetActiveLanguage());
                }

                try
                {
                    value = database.Get(attribute, column, type, GetAttribute <PrimaryKey>(primaryKey), primaryKey, PrimaryKeyValue)[0];
                    data.Add(column, value);
                }
                catch (Exception e)
                {
                    throw e;
                }
            }

            return(data);
        }
コード例 #2
0
        void Start()
        {
            SetAlpha(0.0f);
            controller = handControllerPrefab.GetComponent <LeapHandController>();
            guiTexture = GetComponent <GUITexture>();

            var notice = Model.GetModel <UnityMedia <Texture> >("noHandNotice", LanguageSettingManager.GetActiveLanguage());

            guiTexture.texture = notice.Media;
        }