1
0
forked from cgvr/DeltaVR

Merge branch 'SamWorkset'

This commit is contained in:
2026-01-03 13:46:54 +02:00
1858 changed files with 148220 additions and 9923 deletions

View File

@@ -3,6 +3,7 @@ using FishNet.Object;
using FishNet.Object.Synchronizing;
using UnityEngine;
public class ArcheryTarget : NetworkBehaviour, IArrowHittable
{
public GameObject pointsText;
@@ -46,6 +47,8 @@ public class ArcheryTarget : NetworkBehaviour, IArrowHittable
target.SetPoints(score);
Spawn(prefab);
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.UFODestroy, gameObject);
Despawn(arrow.gameObject, DespawnType.Pool);
Despawn(gameObject, DespawnType.Pool);
}