コード例 #1
0
        public static Color GetColorRecord(string RecordName, string key, Color defaultValue)
        {
            RecordTable table = GetData(RecordName);

            return(table.GetRecord(key, defaultValue));
        }
コード例 #2
0
        public static Vector3 GetVector3Record(string RecordName, string key, Vector3 defaultValue)
        {
            RecordTable table = GetData(RecordName);

            return(table.GetRecord(key, defaultValue));
        }
コード例 #3
0
        public static int GetIntRecord(string RecordName, string key, int defaultValue)
        {
            RecordTable table = GetData(RecordName);

            return(table.GetRecord(key, defaultValue));
        }
コード例 #4
0
        public static bool GetBoolRecord(string RecordName, string key, bool defaultValue)
        {
            RecordTable table = GetData(RecordName);

            return(table.GetRecord(key, defaultValue));
        }
コード例 #5
0
        /// <summary>
        /// 获取浮点记录值
        /// </summary>
        /// <param name="recordName"></param>
        /// <param name="key"></param>
        /// <param name="defaultKey"></param>
        /// <returns></returns>
        public static float GetFloatRecord(string recordName, string key, float defaultKey)
        {
            RecordTable table = GetData(recordName);

            return(table.GetRecord(key, defaultKey));
        }