Skip to content

Instantly share code, notes, and snippets.

[RequireComponent(typeof(Rigidbody))]
public class Follower : MonoBehaviour
{
[SerializeField] private Player _player;
[SerializeField] private float _speed = 5f;
[SerializeField] private float _distance = 5f;
private Rigidbody _rigidbody;
private void Awake()
public class HighClimber : MonoBehaviour
{
[SerializeField] private float _stepHeight = 0.3f;
[SerializeField] private float _slopeLimit = 45f;
private Bot _bot;
private float _stepCheckDistance = 0.5f;
private float _colliderRadius = 0.3f;
public void Initialize(Bot bot)
public void Shoot(Player player) {}
public string FindByIndex(int number) {}
class Switcher
{
private bool _enable;
public void Enable()
{
_effects.StartEnableAnimation();
}
public void Disable()
using System;
namespace IMJunior
{
class Program
{
static void Main(string[] args)
{
PaymentBase paymentBase = new PaymentBase();
OrderForm orderForm = new OrderForm(paymentBase);
using System.Text;
using System.Data.SQLite;
static void Main(string[] args)
{
}
class Model
class Player
{
readonly Weapon _weapon;
readonly Movement _movement;
public Player(string name, int age)
{
Name = name;
Age = age;
_weapon = new Weapon();
public static void CreateObject()
{
//Создание объекта на карте
}
public static void GenerateChance()
{
_chance = Random.Range(0, 100);
}
class Player { }
class Gun { }
class TargetStalker { }
class UnitProvider
{
public IReadOnlyCollection<Unit> UnitsToGet {get; private set;}
}
class Weapon
{
public void Shoot() { }
}