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 void ActivateAnimation(bool isActive) | |
| { | |
| isActive ? _effects.StartEnableAnimation() : _pool.Free(this); | |
| } |
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; | |
| namespace ConsoleApplication1 | |
| { | |
| public static class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| var orderForm = new OrderForm(); |
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 TMPro; | |
| using UnityEngine; | |
| [RequireComponent(typeof(TextMeshProUGUI))] | |
| public class Timer : MonoBehaviour | |
| { | |
| private Coroutine _counter; | |
| private TextMeshProUGUI _textDisplay; |
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 RegistrationPerson | |
| { | |
| private string _personPassport { get; set; } | |
| private PollingStation _station; | |
| private int _maxLength = 10; | |
| public RegistrationPerson(string personPassport, PollingStation station) | |
| { | |
| _personPassport = personPassport.Trim(); | |
| _station = station; |
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 Mover | |
| { | |
| public float DirectionX { get; private set; } | |
| public float DirectionY { get; private set; } | |
| public float Speed { get; private set; } | |
| public Mover(float directionX, float directionY, float speed) | |
| { | |
| DirectionX = directionX; | |
| DirectionY = directionY; |
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 static void Spawn() | |
| { | |
| //Создание объекта на карте | |
| } | |
| public static void RollChance() | |
| { | |
| _chance = Random.Range(0, 100); | |
| } |
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 PlayerInfo { } | |
| public class Gun { } | |
| public class TargetFollower { } | |
| public class UnitStorage | |
| { | |
| public IReadOnlyCollection<Unit> Units {get; private set;} | |
| } |
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 void Shoot() | |
| { | |
| } | |
| } |
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
| private int _armySize = 10; | |
| private int _coins = 10; | |
| private string _name = "Vladislav"; |
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 int _numberShotsFired = 1; | |
| private int _bullets; | |
| private bool CanShoot => _bullets >= _numberShotsFired; | |
| public void Shoot() | |
| { | |
| if(CanShoot) |
NewerOlder