mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
19 lines
414 B
C#
19 lines
414 B
C#
using System;
|
|
|
|
namespace JNGame.Runtime.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;
|
|
}
|
|
}
|
|
} |