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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user