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 System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(BaseScanner))] | |
public class BotsBase : MonoBehaviour | |
{ | |
[Header("Base Settings")] | |
[SerializeField] private Transform _resourcesParent; | |
[SerializeField] private float _timeBetweenBaseTicks = 0.5f; |
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 System.Collections.Generic; | |
using UnityEngine; | |
public class Catapult : MonoBehaviour | |
{ | |
private const float MinVelocity = 0.1f; | |
[SerializeField] private SpringJoint _springJoint; | |
[SerializeField] private Rigidbody _rigidbody; |
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 target) {} | |
public string Find(int index) {} |
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 Enable() | |
{ | |
_enable = true; | |
_effects.StartEnableAnimation(); | |
} | |
public void Disable() | |
{ | |
_enable = false; | |
_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; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace IMJunior | |
{ | |
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.Data; | |
using System.Data.SQLite; | |
using System.IO; | |
using System.Reflection; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Windows.Forms; | |
public static class Program |
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 Player | |
{ | |
private readonly Movement _movement; | |
private readonly WeaponController _weapon; | |
private readonly PlayerProfile _profile; | |
public Player(string name, int age) | |
{ | |
_profile = new PlayerProfile(name, age); | |
_movement = new Movement(); |
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 CreateMapObject() | |
{ | |
// Создание объекта на карте | |
} | |
public static void RandomizeChance() | |
{ | |
_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 Weapon { } | |
class Follower { } | |
class UnitCollection | |
{ | |
public IReadOnlyCollection<Unit> AvailableUnits { 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 Pistol | |
{ | |
public void Fire() { } | |
} |
NewerOlder