Первый коммит с LFS.

This commit is contained in:
vladislove committed 2026-01-11 17:04:23 +03:00
1 parent 4fcb1e2f24
commit 179816dc4b
5084 files changed
+3714098 -1

No files matched your search

@@ -0,0 +1,18 @@
using UnityEngine;
[RequireComponent(typeof(Collider))]
public class CreakSoundTrigger : MonoBehaviour
{
[Tooltip("Звук скрипа, который будет проигран")]
[SerializeField] private AudioClip creakSound;
public AudioClip CreakSound => creakSound;
private void OnValidate()
{
var col = GetComponent<Collider>();
if (col != null && !col.isTrigger)
{
col.isTrigger = true;
}
}
}