Fixed Object Pooling and cascading

This commit is contained in:
2025-12-14 19:19:40 +08:00
parent 68046b8960
commit 95b43ed772
13 changed files with 154 additions and 40 deletions

View File

@@ -0,0 +1,14 @@
using UnityEngine;
namespace Utils {
public static class Vector2IntUtils {
public static bool Compare(this Vector2Int a, Vector2 b) {
Vector2 aVector2 = new Vector2(a.x, a.y);
return Vector2.Distance(aVector2, b) < 0.01f;
}
public static Vector2 ToVector2(this Vector2Int v) {
return new Vector2(v.x, v.y);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2a5066db9b0b4aadba9aa22854bb4cf9
timeCreated: 1765697266