Skip to content
Snippets Groups Projects
Commit 3fba0830 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Made death delete the object by default.

parent 09d54136
Branches main
No related tags found
1 merge request!15Fixing knockback & movement.
......@@ -157,7 +157,7 @@ namespace BigSock {
*/
protected void OnDeath() {
print($"[Character.TryKill()] start. | {HP}, {Alive}");
Destroy(this);
Destroy(gameObject);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment