This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Good iPhone12 = new Good("IPhone 12"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Weapon | |
{ | |
private readonly int _damage; | |
private int _bullets; | |
public Weapon(int damage, int bullets) | |
{ | |
if (damage <= 0) | |
throw new ArgumentOutOfRangeException(nameof(damage), "Отрицательное или равное нулю значение урона"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine; | |
public class Shooter : MonoBehaviour | |
{ | |
[SerializeField] private float _speed; | |
[SerializeField] private float _delay; | |
[SerializeField] private Bullet _prefab; | |
private Transform _target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class CubeBehavior : MonoBehaviour | |
{ | |
private float _explosionForce = 10f; | |
private float _upExplosionForce = 10f; | |
private float _scaleNumber = 0.5f; | |
private float _maxDivisionChance = 1f; | |
private float _multiplierNextChance = 0.5f; | |
private int _currentDivisionCount = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using UnityEngine; | |
public class Timer : MonoBehaviour | |
{ | |
private int _buttonNumber = 0; | |
private float _delay = 0.5f; | |
private bool _isCounterIncreasing = false; | |
private Coroutine _coroutine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class IncreasingSize : MonoBehaviour | |
{ | |
[SerializeField] private Vector3 _scaleDirection; | |
private void Update() | |
{ | |
transform.localScale += _scaleDirection * Time.deltaTime; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace DZ_Transfer_of_fighters | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Xml.Linq; | |
namespace DZ_Weapons_Report | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace DZ_Definition_of_delay | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace DZ_Top_Server_Players | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
NewerOlder