first commit

This commit is contained in:
2026-04-07 03:14:32 +03:00
commit b3992fec6b
1026 changed files with 366769 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// Copyright (C) 2014-2024 Gleechi Technology AB. All rights reserved.
using UnityEngine;
namespace VirtualGrasp.Onboarding
{
public class SoundOnPushEvents : MonoBehaviour
{
public AudioSource pushSoundEffect;
// Start is called before the first frame update
void Start()
{
VG_Controller.OnObjectPushed.AddListener(PlayPushSound);
}
public void PlayPushSound(VG_HandStatus hand)
{
if (hand.m_selectedObject != null && hand.m_selectedObject == transform)
pushSoundEffect.Play();
}
}
}