mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
no message
This commit is contained in:
19
JNFrame/Assets/Game/Plugins/JNGame/Util/UseUtil.cs
Normal file
19
JNFrame/Assets/Game/Plugins/JNGame/Util/UseUtil.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
3
JNFrame/Assets/Game/Plugins/JNGame/Util/UseUtil.cs.meta
Normal file
3
JNFrame/Assets/Game/Plugins/JNGame/Util/UseUtil.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 500748b025884f42ade05338e47bff56
|
||||
timeCreated: 1708237347
|
Reference in New Issue
Block a user