This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using UnityEditor; | |
[CreateAssetMenu(fileName = "AudioClipSO", menuName = "Scriptable Objects/AudioClipSO")] | |
public class AudioDataSO : ScriptableObject | |
{ | |
[field: SerializeField] public DataTypes ShowListType = DataTypes.Helpful; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Printer : MonoBehaviour | |
{ | |
void Update() | |
{ | |
print("crickets"); // выводим слово "crickets" в консоль | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Recoil : MonoBehaviour | |
{ | |
private Vector3 currentRotation; | |
private Vector3 targetRotation; | |
[SerializeField] private float recoilX; |