This commit is contained in:
CortexCore
2023-10-24 23:38:22 +08:00
parent 2c4710bc5d
commit bd40165ade
152 changed files with 3681 additions and 1531 deletions

View File

@@ -15,6 +15,7 @@ namespace BITKit
public BBParameter<GameObject> target;
protected override bool OnCheck()
{
if (target.isNoneOrNull) return false;
if (target.value.transform.TryGetComponent<IHealth>(out var health))
{
return health.HealthPoint >= 0;