Implement player punch and crude damage system
This commit is contained in:
@@ -23,6 +23,10 @@ public class RespawnOnTriggerEnter : MonoBehaviour
|
||||
{
|
||||
rb.linearVelocity = Vector2.zero;
|
||||
}
|
||||
if (TryGetComponent<Damageable>(out var damageable))
|
||||
{
|
||||
damageable.ResetDamage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user