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
[RequireComponent(typeof(Rigidbody))] | |
public class Follower : MonoBehaviour | |
{ | |
[SerializeField] private Player _player; | |
[SerializeField] private float _speed = 5f; | |
[SerializeField] private float _distance = 5f; | |
private Rigidbody _rigidbody; | |
private void Awake() |
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 HighClimber : MonoBehaviour | |
{ | |
[SerializeField] private float _stepHeight = 0.3f; | |
[SerializeField] private float _slopeLimit = 45f; | |
private Bot _bot; | |
private float _stepCheckDistance = 0.5f; | |
private float _colliderRadius = 0.3f; | |
public void Initialize(Bot bot) |
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 Shoot(Player player) {} | |
public string FindByIndex(int number) {} |
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
class Switcher | |
{ | |
private bool _enable; | |
public void Enable() | |
{ | |
_effects.StartEnableAnimation(); | |
} | |
public void Disable() |
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 IMJunior | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
PaymentBase paymentBase = new PaymentBase(); | |
OrderForm orderForm = new OrderForm(paymentBase); |
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.Text; | |
using System.Data.SQLite; | |
static void Main(string[] args) | |
{ | |
} | |
class Model |
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
class Player | |
{ | |
readonly Weapon _weapon; | |
readonly Movement _movement; | |
public Player(string name, int age) | |
{ | |
Name = name; | |
Age = age; | |
_weapon = new Weapon(); |
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 CreateObject() | |
{ | |
//Создание объекта на карте | |
} | |
public static void GenerateChance() | |
{ | |
_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
class Player { } | |
class Gun { } | |
class TargetStalker { } | |
class UnitProvider | |
{ | |
public IReadOnlyCollection<Unit> UnitsToGet {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
class Weapon | |
{ | |
public void Shoot() { } | |
} |
NewerOlder