Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit ff0e23a

Browse files
Fix incorrect transform being destroyed
1 parent 90d6411 commit ff0e23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Assets/Samples/GameEvents/Scripts/ShotHandler.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class ShotHandler : MonoBehaviour
1010

1111
public void HandleShot(UnityEngine.Transform shot)
1212
{
13-
Destroy(shot.gameObject);
13+
Destroy(shot.parent.gameObject);
1414
onShot.Invoke();
1515
}
1616
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /