Skip to content

Commit

Permalink
Fix delay when creature dies and spawns ragdoll (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellochner committed Jul 4, 2023
1 parent 8541365 commit f7a350a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public virtual void Setup()

public virtual void OnDie(DamageReason reason, string inflicter)
{
Collider.enabled = false;
OnHide();

MinimapIcon.enabled = false;

#if USE_STATS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,15 @@ public override void OnDie(DamageReason reason, string inflicter)
Constructor.Body.gameObject.SetActive(false);
Rigidbody.isKinematic = true;

Collider.enabled = false;
Animator.enabled = false;

Abilities.enabled = false;
Mover.enabled = false;
Interactor.enabled = false;

Holder.DropAll();
Holder.enabled = false;

Loader.HideFromOthers();

Spawner.Despawn();

EditorManager.Instance.SetVisibility(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public override void Setup()
}
}

public override void OnDie(DamageReason reason, string inflicter)
{
base.OnDie(reason, inflicter);
Selectable.SetSelected(false, true);
}

public override void OnShow()
{
base.OnShow();
Expand Down
Binary file modified Assets/Localization/Data/Windows/addressables_content_state.bin
Binary file not shown.
103 changes: 11 additions & 92 deletions Assets/Resources/Fonts & Materials/NotoSans.asset

Large diffs are not rendered by default.

0 comments on commit f7a350a

Please sign in to comment.