Skip to content

Instantly share code, notes, and snippets.

View GigaOrts's full-sized avatar
😵‍💫

Orts Ortskhoev GigaOrts

😵‍💫
  • AGAVA
  • Minsk
View GitHub Profile
@GigaOrts
GigaOrts / junior1.cs
Created January 29, 2024 18:21 — forked from tsk-arh/junior1
ЗАДАНИЕ Brave new world narcobeta
using System;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp4
{
internal class Program
{
static void Main(string[] args)
{
using UnityEngine;
[RequireComponent(typeof(CharacterController))]
public class AdvancedCharacterController : MonoBehaviour
{
[SerializeField] private float _speed = 5.0f; // Скорость передвижения персонажа
[SerializeField] private float _gravity = 9.8f; // Гравитация, влияющая на падение персонажа
[SerializeField] private float _jumpForce = 8.0f; // Сила прыжка персонажа
[SerializeField] private float _slopeForce = 5.0f; // Сила, добавляемая для движения по наклонным поверхностям
[SerializeField] private float _slopeRayLength = 1.5f; // Длина луча, используемая для определения наклонной поверхности
using System;
using System.Collections.Generic;
using System.Linq;
internal class Program
{
static void Main(string[] args)
{
Good iPhone12 = new Good("IPhone 12");
Good iPhone11 = new Good("IPhone 11");
using System;
using System.Collections.Generic;
namespace Коллекции1задание
{
internal class Program
{
static void Main(string[] args)
{
bool isNotFound = true;
using System;
using System.Collections.Generic;
using System.Linq;
namespace iJunior
{
class MainClass
{
public static void Main(string[] args)
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Runtime.CompilerServices;
namespace iJunior
{
class MainClass
{
using System;
using System.Collections.Generic;
using System.Linq;
namespace iJunior
{
class MainClass
{
public static void Main(string[] args)
{
using System;
using System.Collections.Generic;
using System.Linq;
namespace iJunior
{
class MainClass
{
public static void Main(string[] args)
{
class Player
{
private readonly Movement _movement;
private readonly Weapon _weapon;
public Player(string name, int age, Movement movement, Weapon weapon)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentException($"\"{nameof(name)}\" не может быть пустым или содержать только пробел.", nameof(name));
@GigaOrts
GigaOrts / Weapon.cs
Last active August 30, 2023 19:32 — forked from HolyMonkey/Weapon.cs
using System;
class Weapon
{
private readonly int _damage;
private int _bullets;
public Weapon(int damage, int bullets)
{
if (damage < 0)