This commit is contained in:
CortexCore
2023-10-04 16:50:27 +08:00
parent 947e52e748
commit 5cd094ed9a
263 changed files with 144068 additions and 66 deletions

View File

@@ -60,6 +60,14 @@ namespace BITFALL.Entities.Player.Movement
physics.OnSetPhysics += OnSetPhysics;
}
public override void OnStart()
{
foreach (var x in GetComponentsInChildren<Collider>(true))
{
actor.PhysicsComponent.IgnoreCollision(x.transform,true);
}
}
private void OnSetPhysics(bool obj)
{
if (obj is false) return;