Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 309406f

Browse files
committed
Fix incorrect transform being destroyed
1 parent ccb62d4 commit 309406f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)