/
crypt
/
SnowBallRefactoring
Обзор
Документация
Войти
/
crypt
/
SnowBallRefactoring
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Assets/Scripts/SoundWind.cs
34 строки
535 B
crypt
Мой первый проект. Старт рефакторинга.
21 июл 2026, 18:23
21 июл 2026, 18:23
bef234c
Код
Авторство
О чём код?
using UnityEngine; using System.Collections; public class SoundWind : MonoBehaviour { AudioSource AS; bool one = false; void Start () { AS = GetComponent<AudioSource>(); } void Update () { if (gamtest.wind && PlayerPrefs.GetInt("isSound") == 1 && !one){ { AS.Play(); one = true; } } if(!gamtest.wind) { one = false; AS.Stop(); } } }