Implement Bombs
This commit is contained in:
14
Assets/Scripts/Utils/GemUtils.cs
Normal file
14
Assets/Scripts/Utils/GemUtils.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Enums;
|
||||
using Structs;
|
||||
|
||||
namespace Utils {
|
||||
public static class GemUtils {
|
||||
public static GemTypeValues GetGemValues(GemType type, GemTypeValues[] gemValues) {
|
||||
foreach (GemTypeValues gemValue in gemValues) {
|
||||
if(gemValue.type == type) return gemValue;
|
||||
}
|
||||
|
||||
return default;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Utils/GemUtils.cs.meta
Normal file
3
Assets/Scripts/Utils/GemUtils.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23b7012d4cd64b99be4170c1f0ea9fdb
|
||||
timeCreated: 1765733100
|
||||
Reference in New Issue
Block a user