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
//Оглушает выбранную цель на 3 секунды | |
//Время перезарядки: 10 секунд | |
//Условие: Цель должна быть противником | |
//При использовании способности списывается один заряд | |
//Активация Клавиша U + ЛКМ на цель: | |
public sealed class StunAbilityConfig : AbilityConfig | |
{ | |
protected override void Install(Ability ability, IPlayerContext context) | |
{ |
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 interface IGameSerializer | |
{ | |
void Serialize(Dictionary<string, string> saveState); | |
void Deserialize(Dictionary<string,string> loadState); | |
} | |
public interface IItemCatalog | |
{ |
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
Команда №1. Апгрейды | |
https://docs.google.com/document/d/15BPeyfEFCI7ZocPsVlZiJrWNo1EE9BgAZ8o_0klthYk/edit?usp=sharing | |
Команда №2. Дерево технологий | |
https://docs.google.com/document/d/1I_HaUYmeAzwSy3YfoKqojy7lSOIe-v0uLquSdghq2DI/edit?usp=sharing | |
Команда №3. Квесты | |
https://docs.google.com/document/d/1euheDLidkAdqgArdJe6OsfKnB23of0fOj5SDT-hMYUk/edit?usp=sharing | |
Команда №4. Баффы |
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
//Команда №1 | |
[Serializable] | |
public sealed class PatrolBehaviour : IAIUpdate | |
{ | |
public void OnUpdate(IBlackboard blackboard, float deltaTime) | |
{ | |
if (blackboard.TryGetCharacter(out GameObject character) && character != null && | |
blackboard.TryGetStoppingDistance(out float stoppingDistance) && | |
blackboard.TryGetWaypoints(out Transform[] waypoints) && | |
blackboard.TryGetWaypointIndex(out int waypointIndex)) |
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
[Serializable] | |
public sealed class FireBulletBehaviour : IEntityInit, IEntityDispose | |
{ | |
public void Init(IEntity entity) | |
{ | |
//TODO: | |
} | |
public void Dispose(IEntity entity) | |
{ |
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
/** | |
/* Максимальное кол-во баллов 20 | |
**/ | |
/// Упражнение №1 | |
/// 1 балл | |
public class Controller : MonoBehaviour | |
{ | |
[SerializeField] private GameManager _gameManager; |
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
/** | |
/* Максимальное кол-во баллов 20 | |
/* 15 баллов > пиица на каждого в команде | |
**/ | |
/// Упражнение №1 | |
/// 1 балл | |
public class Controller : MonoBehaviour | |
{ |
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
//Реализовать включение и выключение маркера обнаружения при переходе в состояние атаки | |
//Решение оставить под комментарием | |
//Время 3 минуты |
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
//Компонент прыжка | |
[Serializable] | |
[Is(ObjectType.Jumpable)] | |
public sealed class JumpComponent | |
{ | |
[Get(ObjectAPI.JumpAction)] | |
public IAtomicAction JumpAction => this.jumpAction; | |
[Get(ObjectAPI.JumpEnabled)] | |
public IAtomicExpression<bool> JumpEnabled => this.jumpEnabled; |
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 sealed class Character : MonoBehaviour | |
{ | |
public AtomicVariable<bool> isAlive = new(true); | |
public MoveComponent moveComponent; | |
public AtomicValue<float> jumpForce = new(8); | |
public AtomicVariable<bool> jumpEnabled = new(true); | |
public JumpAction jumpAction = new(); |