Skip to content

Instantly share code, notes, and snippets.

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() { }
}
int armySize = 10;
int coins = 10;
string name = "Vladislav";
class Weapon
{
private int _bullets;
private const int _zeroBullets = 0;
private const int _bulletShot = 1;
public bool CanShoot => _bulletShot <= _bullets;
public void Shoot()
{