This commit is contained in:
monitor1394
2022-05-22 22:17:38 +08:00
parent 003f4da9de
commit bafe032bb9
391 changed files with 3718 additions and 2774 deletions

View File

@@ -1,7 +1,6 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using UnityEngine;
@@ -62,7 +61,7 @@ namespace XCharts.Runtime
public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute
{
if (type.IsDefined(typeof(T), false))
return (T)type.GetCustomAttributes(typeof(T), false)[0];
return (T) type.GetCustomAttributes(typeof(T), false) [0];
else
{
if (check)
@@ -73,7 +72,7 @@ namespace XCharts.Runtime
public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute
{
if (type.IsDefined(typeof(T), false))
return (T)type.GetCustomAttributes(typeof(T), false)[0];
return (T) type.GetCustomAttributes(typeof(T), false) [0];
else
{
if (check)