Trick ehancements

This commit is contained in:
hz
2026-02-01 14:51:50 -06:00
parent 86381e4067
commit b09362917a
5 changed files with 146 additions and 239 deletions
+14 -2
View File
@@ -205,10 +205,22 @@ public class PlayerPlatformerController : MonoBehaviour
for (var i = 0; i < hits.Length; i++)
{
var hit = hits[i];
if (hit != null && hit != bodyCollider)
if (hit == null || hit == bodyCollider || hit.isTrigger)
{
return true;
continue;
}
if (hit.GetComponent<PlayerPlatformerController>() != null)
{
continue;
}
if (hit.GetComponent<TrickController>() != null)
{
continue;
}
return true;
}
return false;