19 lines
419 B
C#
Raw Normal View History

2024-08-17 14:27:18 +08:00
using System;
namespace Game.Plugins.JNGame.Util
{
public class UseUtil
{
public static bool ContainsType(object[] array, Type typeToFind)
{
foreach (var item in array)
{
if (item.GetType() == typeToFind)
{
return true;
}
}
return false;
}
}
}