Skip to content

Instantly share code, notes, and snippets.

View StasonicK's full-sized avatar
👾

Stanislav Anishchenko StasonicK

👾
View GitHub Profile
class Program
{
static void Main(string[] args)
{
var orderForm = new OrderForm();
var paymentHandler = new PaymentHandler();
IPaymentSystem paymentSystem = null;
var systemId = orderForm.ShowForm();
public void Enable()
{
_enable = true;
_effects.StartEnableAnimation();
}
public void Disable()
{
_enable = false;
_pool.Free(this);
public void Shoot(Player player) {}
public string Find(int number) {}
public static void CreateNewObject()
{
//Создание объекта на карте
}
public static void GenerateRandomChance()
{
_chance = Random.Range(0, 100);
}
private void checkButton_Click(object sender, EventArgs e)
{
if (this.passportTextbox.Text.Trim() == "")
{
int num1 = (int)MessageBox.Show("Введите серию и номер паспорта");
}
else
{
class Player
{
public string Name { get; private set; }
public int Age { get; private set; }
public void Move()
{
//Do move
}
class Weapon
{
private int _bullets;
private int _noneBulletsCount;
private int _spendingBulletsPerShot;
public bool CanShoot() => _bullets > _noneBulletsCount;
int ArmySize = 10;
int CoinsNumber = 10;
string Name = "Vladislav";
class Player { }
class Gun { }
class Target { }
class Unit
{
public IReadOnlyCollection<Unit> Units {get; private set;}
}
class Gun
{
public void Shoot() { }
}