Код: Выделить всё
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WeaponSwayBob : MonoBehaviour
{
[Header("Sway")]
public float SwayIntensityX;
public float SwayIntensityY;
public float MaxSway;
public float MinSway;
[Header("Transform")]
public Transform Gun;
public BobOverride[] BobOverrides;
public float currentSpeed;
private float TimeX;
private float TimeY;
private float XPos;
private float YPos;
private Vector3 SmoothV;
private void Update()
{
foreach(BobOverride Bob in BobOverrides)
{
if(currentSpeed >= Bob.minSpeed && currently
Подробнее здесь: [url]https://stackoverflow.com/questions/78357390/type-or-namespace-or-end-of-file-excpected[/url]