Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class BooletShooter : MonoBehaviour
{
[SerializeField] public float _speed;
[SerializeField] GameObject _bulletPrefab;
[SerializeField] float _shotDelay;
using UnityEngine;
public class TargetsChaser : MonoBehaviour
{
private Transform _currentTarget;
private Transform[] _targets;
private int _targetIndex;
private float _speed;
private float _distanceMargin;
@rgweh
rgweh / gist:3dc222f532676b2cad0329d168825cc4
Last active October 12, 2024 12:10
ДЗ: Перевод бойцов
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:3b98aa61162a5e19ddf8e47ae10bbe97
Last active October 12, 2024 02:34
ДЗ: Отчет о вооружении
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:f5b1364c2d0892fcc6ede16e0407376c
Last active October 10, 2024 04:24
ДЗ: Определение просрочки
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:148431b460e7b9d64158584074f88aea
Last active October 10, 2024 03:42
ДЗ: Топ игроков сервера
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:30e4a09d22f9ffe0ac80cd28235a9af5
Created October 9, 2024 13:50
ДЗ: Анархия в больнице
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:62cf98561ed0f5ba1ea4b6a623478273
Created October 9, 2024 08:09
ДЗ: Амнистия
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:3641bfde152ee2c1dad47907dff7714f
Last active October 9, 2024 07:03
ДЗ: Поиск преступника
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
@rgweh
rgweh / gist:d40a79e646613bfcd0f232394d736e1d
Last active October 4, 2024 03:12
ДЗ: Зоопарк
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
List<Animal> baseAnimals = new List<Animal>