Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tg"></param>
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            MinimumValue = _tg.GetNullableInt32("MinimumValue");
            MaximumValue = _tg.GetNullableInt32("MaximumValue");
            DefaultValue = _tg.GetNullableInt32("DefaultValue");
        }
Esempio n. 2
0
        public void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            int?propertyCount = _tg.GetNullableInt32("PropertyCount");

            if (propertyCount != null)
            {
                for (int i = 0; i < propertyCount.Value; i++)
                {
                    string temp = _tg.GetString(i.ToString());

                    Property p = TGSerializedObject.GetTGSerializable <Property>(temp);
                    Add(p);
                }
            }
        }