Merge branch 'mobs-dev' into GraphicsModelsGrossGlossBeuaty
This commit is contained in:
commit
c14880457d
61 files changed
+2595
-14
No files matched your search
@@ -37,9 +37,9 @@ namespace Code.App.AppStates
|
|||||||
Context.UIService.LoadingScreen.Show();
|
Context.UIService.LoadingScreen.Show();
|
||||||
|
|
||||||
_playerMoney = Context.PlayerFactory.CreatePlayerMoney();
|
_playerMoney = Context.PlayerFactory.CreatePlayerMoney();
|
||||||
_playerHealth = Context.PlayerFactory.CreatePlayerHealth();
|
|
||||||
|
|
||||||
_playerHealth.OnDeath += EndGame;
|
//_playerHealth = Context.PlayerProvider.Health;
|
||||||
|
//_playerHealth.OnDeath += EndGame;
|
||||||
|
|
||||||
Context.AudioService.TransitToSnapshot(AudioSnapshotState.Peaceful);
|
Context.AudioService.TransitToSnapshot(AudioSnapshotState.Peaceful);
|
||||||
|
|
||||||
@@ -69,6 +69,9 @@ namespace Code.App.AppStates
|
|||||||
WaitForPlayerCharacterLoad()
|
WaitForPlayerCharacterLoad()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_playerHealth = Context.PlayerProvider.Health;
|
||||||
|
_playerHealth.OnDeath += EndGame;
|
||||||
|
|
||||||
Context.AudioService.PlayRandomMusicUntilHumanityWillBeDestroyedForTheySins(MusicType.Peaceful);
|
Context.AudioService.PlayRandomMusicUntilHumanityWillBeDestroyedForTheySins(MusicType.Peaceful);
|
||||||
Context.AudioService.PlayRandomMusicUntilHumanityWillBeDestroyedForTheySins(MusicType.Action);
|
Context.AudioService.PlayRandomMusicUntilHumanityWillBeDestroyedForTheySins(MusicType.Action);
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace Code.App
|
|||||||
|
|
||||||
containerBuilder.AddSingleton(typeof(InputService), typeof(IInputService));
|
containerBuilder.AddSingleton(typeof(InputService), typeof(IInputService));
|
||||||
containerBuilder.AddSingleton(typeof(PlayerFactory), typeof(IPlayerFactory));
|
containerBuilder.AddSingleton(typeof(PlayerFactory), typeof(IPlayerFactory));
|
||||||
|
containerBuilder.AddSingleton(typeof(PlayerProvider), typeof(IPlayerProvider));
|
||||||
|
|
||||||
InitializeCamera(containerBuilder, staticDataService);
|
InitializeCamera(containerBuilder, staticDataService);
|
||||||
containerBuilder.AddSingleton(typeof(UIFactory), typeof(IUIFactory));
|
containerBuilder.AddSingleton(typeof(UIFactory), typeof(IUIFactory));
|
||||||
@@ -77,6 +78,10 @@ namespace Code.App
|
|||||||
|
|
||||||
containerBuilder.AddSingleton(staticDataService.UIConfig, typeof(UIConfig));
|
containerBuilder.AddSingleton(staticDataService.UIConfig, typeof(UIConfig));
|
||||||
|
|
||||||
|
containerBuilder.AddSingleton(staticDataService.DrunkenGrandpaConfig, typeof(DrunkenGrandpaConfig));
|
||||||
|
containerBuilder.AddSingleton(staticDataService.CockroachConfig, typeof(CockroachConfig));
|
||||||
|
containerBuilder.AddSingleton(staticDataService.FogConfig, typeof(FogConfig));
|
||||||
|
|
||||||
containerBuilder.AddSingleton(staticDataService.AudioMixerConfig, typeof(AudioMixerConfig));
|
containerBuilder.AddSingleton(staticDataService.AudioMixerConfig, typeof(AudioMixerConfig));
|
||||||
containerBuilder.AddSingleton(staticDataService.SoundtrackListConfig, typeof(SoundtrackListConfig));
|
containerBuilder.AddSingleton(staticDataService.SoundtrackListConfig, typeof(SoundtrackListConfig));
|
||||||
containerBuilder.AddSingleton(staticDataService.SFXListConfig, typeof(SFXListConfig));
|
containerBuilder.AddSingleton(staticDataService.SFXListConfig, typeof(SFXListConfig));
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace Code.App.StateMachine
|
|||||||
[Inject] public CameraStateMachine CameraStateMachine { get; private set; }
|
[Inject] public CameraStateMachine CameraStateMachine { get; private set; }
|
||||||
[Inject] public IUIService UIService { get; private set; }
|
[Inject] public IUIService UIService { get; private set; }
|
||||||
[Inject] public IPlayerFactory PlayerFactory { get; private set; }
|
[Inject] public IPlayerFactory PlayerFactory { get; private set; }
|
||||||
|
[Inject] public IPlayerProvider PlayerProvider { get; private set; }
|
||||||
[Inject] public IAudioFactory AudioFactory { get; private set; }
|
[Inject] public IAudioFactory AudioFactory { get; private set; }
|
||||||
[Inject] public IAudioService AudioService { get; private set; }
|
[Inject] public IAudioService AudioService { get; private set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AddressableAssets;
|
||||||
|
|
||||||
|
namespace Code.Configs
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(menuName = "Config/Enemies/Cockroach", fileName = "CockroachConfig")]
|
||||||
|
public class CockroachConfig : ScriptableObject
|
||||||
|
{
|
||||||
|
public AssetReference cockroachPrefab;
|
||||||
|
|
||||||
|
public int damage = 2;
|
||||||
|
public float attackCooldown = 1.5f;
|
||||||
|
|
||||||
|
public float detectionRange = 20f;
|
||||||
|
public float attackRange = 1.3f;
|
||||||
|
|
||||||
|
public float speed = 6f;
|
||||||
|
|
||||||
|
public bool isStunnable;
|
||||||
|
public float stunDuration;
|
||||||
|
|
||||||
|
public bool usesIdleMovement = true;
|
||||||
|
public float idleWanderRadius = 3f;
|
||||||
|
public float idleMoveDurationMin = 0.3f;
|
||||||
|
public float idleMoveDurationMax = 1f;
|
||||||
|
public float idlePauseDurationMin = 0.1f;
|
||||||
|
public float idlePauseDurationMax = 0.8f;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7bc162d3127949aa950d0738beee99a4
|
||||||
|
timeCreated: 1763571220
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AddressableAssets;
|
||||||
|
|
||||||
|
namespace Code.Configs
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(menuName = "Config/Enemies/DrunkenGrandpa", fileName = "DrunkenGrandpaConfig")]
|
||||||
|
public class DrunkenGrandpaConfig : ScriptableObject
|
||||||
|
{
|
||||||
|
public AssetReference drunkenGrandpaPrefab;
|
||||||
|
|
||||||
|
public int damage = 2;
|
||||||
|
public float attackCooldown = 5f;
|
||||||
|
|
||||||
|
public float detectionRange = 10f;
|
||||||
|
public float attackRange = 1.5f;
|
||||||
|
|
||||||
|
public float speed = 3f;
|
||||||
|
|
||||||
|
public bool isStunnable = true;
|
||||||
|
public float stunDuration = 3f;
|
||||||
|
|
||||||
|
public bool usesIdleMovement = true;
|
||||||
|
public float idleWanderRadius = 5f;
|
||||||
|
public float idleMoveDurationMin = 1f;
|
||||||
|
public float idleMoveDurationMax = 5f;
|
||||||
|
public float idlePauseDurationMin = 3f;
|
||||||
|
public float idlePauseDurationMax = 5f;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4d157e8891074b90957a7434cff0ae71
|
||||||
|
timeCreated: 1763569096
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AddressableAssets;
|
||||||
|
|
||||||
|
namespace Code.Configs
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(menuName = "Config/Enemies/Fog", fileName = "FogConfig")]
|
||||||
|
public class FogConfig : ScriptableObject
|
||||||
|
{
|
||||||
|
public AssetReference fogPrefab;
|
||||||
|
|
||||||
|
public int damage = int.MaxValue;
|
||||||
|
public float attackCooldown;
|
||||||
|
|
||||||
|
public float detectionRange;
|
||||||
|
public float attackRange = 5f;
|
||||||
|
|
||||||
|
public float speed = 1.5f;
|
||||||
|
|
||||||
|
public bool isStunnable;
|
||||||
|
public float stunDuration;
|
||||||
|
|
||||||
|
public bool usesIdleMovement;
|
||||||
|
public float idleWanderRadius;
|
||||||
|
public float idleMoveDurationMin;
|
||||||
|
public float idleMoveDurationMax;
|
||||||
|
public float idlePauseDurationMin;
|
||||||
|
public float idlePauseDurationMax;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: aa4dd2a5cce24902a2918488b5751f2f
|
||||||
|
timeCreated: 1763581410
|
||||||
+25
@@ -33,6 +33,11 @@ namespace Code.Gameplay.Character.Controller
|
|||||||
private GroundMovementSystem _groundMovement;
|
private GroundMovementSystem _groundMovement;
|
||||||
private AirMovementSystem _airMovement;
|
private AirMovementSystem _airMovement;
|
||||||
|
|
||||||
|
public bool IsSliding => _slideMechanic.IsSliding;
|
||||||
|
|
||||||
|
private float abilityBlockTimer;
|
||||||
|
private bool isAbilitiesBlocked;
|
||||||
|
|
||||||
public void SetPosition(Vector3 position) => motor.SetPosition(position);
|
public void SetPosition(Vector3 position) => motor.SetPosition(position);
|
||||||
public void SetRotation(Quaternion rotation) => motor.SetRotation(rotation);
|
public void SetRotation(Quaternion rotation) => motor.SetRotation(rotation);
|
||||||
|
|
||||||
@@ -136,6 +141,20 @@ namespace Code.Gameplay.Character.Controller
|
|||||||
// Сохраняем текущий режим камеры
|
// Сохраняем текущий режим камеры
|
||||||
_currentCameraMode = inputs.CameraMode;
|
_currentCameraMode = inputs.CameraMode;
|
||||||
|
|
||||||
|
if (isAbilitiesBlocked)
|
||||||
|
{
|
||||||
|
abilityBlockTimer -= Time.deltaTime;
|
||||||
|
if (abilityBlockTimer <= 0)
|
||||||
|
{
|
||||||
|
isAbilitiesBlocked = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
inputs.SprintPressed = false;
|
||||||
|
inputs.SlidePressed = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Обработка слайда
|
// Обработка слайда
|
||||||
_slideMechanic.RequestSlide(inputs.SlidePressed);
|
_slideMechanic.RequestSlide(inputs.SlidePressed);
|
||||||
|
|
||||||
@@ -222,6 +241,12 @@ namespace Code.Gameplay.Character.Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void BlockAbilities(float duration)
|
||||||
|
{
|
||||||
|
isAbilitiesBlocked = true;
|
||||||
|
abilityBlockTimer = duration;
|
||||||
|
}
|
||||||
|
|
||||||
// Метод вызывается перед обновлением персонажа (можно использовать для подготовки)
|
// Метод вызывается перед обновлением персонажа (можно использовать для подготовки)
|
||||||
public void BeforeCharacterUpdate(float deltaTime)
|
public void BeforeCharacterUpdate(float deltaTime)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3b36108558824d748620db29707cd2b1
|
||||||
|
timeCreated: 1763228467
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AI;
|
||||||
|
using Code.Gameplay.Player;
|
||||||
|
using Code.Gameplay.Character.Controller;
|
||||||
|
using Code.Gameplay.Character.Core;
|
||||||
|
using Reflex.Attributes;
|
||||||
|
using Reflex.Core;
|
||||||
|
using Reflex.Injectors;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Enemies
|
||||||
|
{
|
||||||
|
public abstract class BaseEnemy : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] protected NavMeshAgent agent;
|
||||||
|
[SerializeField] protected Collider enemyCollider;
|
||||||
|
|
||||||
|
protected int Damage;
|
||||||
|
protected float AttackCooldown;
|
||||||
|
|
||||||
|
protected float DetectionRange;
|
||||||
|
protected float AttackRange;
|
||||||
|
|
||||||
|
protected float Speed;
|
||||||
|
|
||||||
|
protected bool IsStunnable;
|
||||||
|
protected float StunDuration;
|
||||||
|
|
||||||
|
protected bool UsesIdleMovement;
|
||||||
|
protected float IdleWanderRadius;
|
||||||
|
protected float IdleMoveDurationMin;
|
||||||
|
protected float IdleMoveDurationMax;
|
||||||
|
protected float IdlePauseDurationMin;
|
||||||
|
protected float IdlePauseDurationMax;
|
||||||
|
|
||||||
|
private bool _isStunned;
|
||||||
|
private float _currentStunTimer;
|
||||||
|
|
||||||
|
private bool _canAttack = true;
|
||||||
|
private float _attackCooldownTimer;
|
||||||
|
|
||||||
|
private enum IdleState { Moving, Paused }
|
||||||
|
private IdleState _currentIdleState = IdleState.Paused;
|
||||||
|
private float _idleTimer;
|
||||||
|
private Vector3 _idleTargetPosition;
|
||||||
|
|
||||||
|
[Inject] private IPlayerProvider _playerProvider;
|
||||||
|
protected CharacterProvider Player => _playerProvider?.Character;
|
||||||
|
protected PlayerHealth PlayerHealth => _playerProvider?.Health;
|
||||||
|
protected CustomCharacterController PlayerController => Player?.CustomCharacterController;
|
||||||
|
|
||||||
|
protected virtual void Awake()
|
||||||
|
{
|
||||||
|
if (_playerProvider == null)
|
||||||
|
{
|
||||||
|
AttributeInjector.Inject(this, Container.ProjectContainer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void Update()
|
||||||
|
{
|
||||||
|
if (!Player) return;
|
||||||
|
|
||||||
|
HandleStun();
|
||||||
|
HandleAttackCooldown();
|
||||||
|
if (_isStunned) return;
|
||||||
|
|
||||||
|
HandleMovement();
|
||||||
|
HandleAttack();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void HandleMovement()
|
||||||
|
{
|
||||||
|
if (!Player || !agent) return;
|
||||||
|
|
||||||
|
var distanceToPlayer = Vector3.Distance(transform.position, Player.transform.position);
|
||||||
|
|
||||||
|
if (distanceToPlayer <= DetectionRange)
|
||||||
|
{
|
||||||
|
agent.isStopped = false;
|
||||||
|
agent.SetDestination(Player.transform.position);
|
||||||
|
}
|
||||||
|
else if (UsesIdleMovement)
|
||||||
|
{
|
||||||
|
HandleIdleMovement();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
agent.isStopped = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void HandleIdleMovement()
|
||||||
|
{
|
||||||
|
_idleTimer -= Time.deltaTime;
|
||||||
|
|
||||||
|
switch (_currentIdleState)
|
||||||
|
{
|
||||||
|
case IdleState.Paused:
|
||||||
|
if (_idleTimer <= 0f)
|
||||||
|
{
|
||||||
|
// Start moving to a new random point
|
||||||
|
_currentIdleState = IdleState.Moving;
|
||||||
|
SetNewIdleDestination();
|
||||||
|
_idleTimer = Random.Range(IdleMoveDurationMin, IdleMoveDurationMax);
|
||||||
|
agent.isStopped = false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case IdleState.Moving:
|
||||||
|
if (_idleTimer <= 0f || HasReachedIdleDestination())
|
||||||
|
{
|
||||||
|
// Stop and pause
|
||||||
|
_currentIdleState = IdleState.Paused;
|
||||||
|
_idleTimer = Random.Range(IdlePauseDurationMin, IdlePauseDurationMax);
|
||||||
|
agent.isStopped = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetNewIdleDestination()
|
||||||
|
{
|
||||||
|
Vector3 randomPoint = transform.position + Random.insideUnitSphere * IdleWanderRadius;
|
||||||
|
NavMeshHit hit;
|
||||||
|
if (NavMesh.SamplePosition(randomPoint, out hit, 3f, agent.areaMask))
|
||||||
|
{
|
||||||
|
_idleTargetPosition = hit.position;
|
||||||
|
agent.SetDestination(_idleTargetPosition);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Fallback: stay
|
||||||
|
_idleTargetPosition = transform.position;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool HasReachedIdleDestination()
|
||||||
|
{
|
||||||
|
return agent.remainingDistance <= agent.stoppingDistance;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void HandleAttack() { }
|
||||||
|
|
||||||
|
protected virtual void HandleStun()
|
||||||
|
{
|
||||||
|
if (!_isStunned || !IsStunnable) return;
|
||||||
|
|
||||||
|
_currentStunTimer -= Time.deltaTime;
|
||||||
|
|
||||||
|
if (!(_currentStunTimer <= 0)) return;
|
||||||
|
|
||||||
|
_isStunned = false;
|
||||||
|
agent.isStopped = false;
|
||||||
|
enemyCollider.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void ApplyStun()
|
||||||
|
{
|
||||||
|
_isStunned = true;
|
||||||
|
_currentStunTimer = StunDuration;
|
||||||
|
agent.isStopped = true;
|
||||||
|
enemyCollider.enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void HandleAttackCooldown()
|
||||||
|
{
|
||||||
|
if (!_canAttack)
|
||||||
|
{
|
||||||
|
_attackCooldownTimer -= Time.deltaTime;
|
||||||
|
if (_attackCooldownTimer <= 0)
|
||||||
|
{
|
||||||
|
_canAttack = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void DealDamage()
|
||||||
|
{
|
||||||
|
if (!_canAttack || PlayerHealth == null) return;
|
||||||
|
|
||||||
|
PlayerHealth.GetDamage(Damage);
|
||||||
|
ApplyEffectsToPlayer();
|
||||||
|
|
||||||
|
_canAttack = false;
|
||||||
|
_attackCooldownTimer = AttackCooldown;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void ApplyEffectsToPlayer()
|
||||||
|
{
|
||||||
|
PlayerController.BlockAbilities(3f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDrawGizmosSelected()
|
||||||
|
{
|
||||||
|
Gizmos.color = Color.yellow;
|
||||||
|
Gizmos.DrawWireSphere(transform.position, DetectionRange);
|
||||||
|
|
||||||
|
Gizmos.color = new Color(0.3f, 0.3f, 0.8f, 0.4f);
|
||||||
|
Gizmos.DrawSphere(transform.position, AttackRange);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 691006ba0f69448787db8f350ecf32f4
|
||||||
|
timeCreated: 1763228480
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
using Code.Configs;
|
||||||
|
using Reflex.Attributes;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AI;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Enemies
|
||||||
|
{
|
||||||
|
public class Cockroach : BaseEnemy
|
||||||
|
{
|
||||||
|
[Inject]
|
||||||
|
private void Construct(CockroachConfig cockroachConfig)
|
||||||
|
{
|
||||||
|
Damage = cockroachConfig.damage;
|
||||||
|
AttackCooldown = cockroachConfig.attackCooldown;
|
||||||
|
|
||||||
|
DetectionRange = cockroachConfig.detectionRange;
|
||||||
|
AttackRange = cockroachConfig.attackRange;
|
||||||
|
|
||||||
|
Speed = cockroachConfig.speed;
|
||||||
|
|
||||||
|
IsStunnable = cockroachConfig.isStunnable;
|
||||||
|
StunDuration = cockroachConfig.stunDuration;
|
||||||
|
|
||||||
|
UsesIdleMovement = cockroachConfig.usesIdleMovement;
|
||||||
|
IdleWanderRadius = cockroachConfig.idleWanderRadius;
|
||||||
|
IdleMoveDurationMin = cockroachConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = cockroachConfig.idleMoveDurationMax;
|
||||||
|
IdleMoveDurationMin = cockroachConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = cockroachConfig.idleMoveDurationMax;
|
||||||
|
IdlePauseDurationMin = cockroachConfig.idlePauseDurationMin;
|
||||||
|
IdlePauseDurationMax = cockroachConfig.idlePauseDurationMax;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Awake()
|
||||||
|
{
|
||||||
|
base.Awake();
|
||||||
|
|
||||||
|
if (agent == null) return;
|
||||||
|
|
||||||
|
var walkableArea = NavMesh.GetAreaFromName("Cockroach");
|
||||||
|
agent.areaMask = 1 << walkableArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void HandleAttack()
|
||||||
|
{
|
||||||
|
if (!Player) return;
|
||||||
|
|
||||||
|
var distance = Vector3.Distance(transform.position, Player.transform.position);
|
||||||
|
|
||||||
|
if (!(distance <= AttackRange)) return;
|
||||||
|
|
||||||
|
DealDamage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 119c0b675c944ed7ada6cdc8db4b04aa
|
||||||
|
timeCreated: 1763228933
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
using Code.Configs;
|
||||||
|
using Reflex.Attributes;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AI;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Enemies
|
||||||
|
{
|
||||||
|
public class DrunkenGrandpa : BaseEnemy
|
||||||
|
{
|
||||||
|
[Inject]
|
||||||
|
private void Construct(DrunkenGrandpaConfig drunkenGrandpaConfig)
|
||||||
|
{
|
||||||
|
Damage = drunkenGrandpaConfig.damage;
|
||||||
|
AttackCooldown = drunkenGrandpaConfig.attackCooldown;
|
||||||
|
|
||||||
|
DetectionRange = drunkenGrandpaConfig.detectionRange;
|
||||||
|
AttackRange = drunkenGrandpaConfig.attackRange;
|
||||||
|
|
||||||
|
Speed = drunkenGrandpaConfig.speed;
|
||||||
|
|
||||||
|
IsStunnable = drunkenGrandpaConfig.isStunnable;
|
||||||
|
StunDuration = drunkenGrandpaConfig.stunDuration;
|
||||||
|
|
||||||
|
UsesIdleMovement = drunkenGrandpaConfig.usesIdleMovement;
|
||||||
|
IdleWanderRadius = drunkenGrandpaConfig.idleWanderRadius;
|
||||||
|
IdleMoveDurationMin = drunkenGrandpaConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = drunkenGrandpaConfig.idleMoveDurationMax;
|
||||||
|
IdleMoveDurationMin = drunkenGrandpaConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = drunkenGrandpaConfig.idleMoveDurationMax;
|
||||||
|
IdlePauseDurationMin = drunkenGrandpaConfig.idlePauseDurationMin;
|
||||||
|
IdlePauseDurationMax = drunkenGrandpaConfig.idlePauseDurationMax;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Awake()
|
||||||
|
{
|
||||||
|
base.Awake();
|
||||||
|
|
||||||
|
if (agent == null) return;
|
||||||
|
|
||||||
|
var walkableArea = NavMesh.GetAreaFromName("Walkable");
|
||||||
|
agent.areaMask = 1 << walkableArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void HandleAttack()
|
||||||
|
{
|
||||||
|
if (!Player) return;
|
||||||
|
|
||||||
|
var distance = Vector3.Distance(transform.position, Player.transform.position);
|
||||||
|
|
||||||
|
if (!(distance <= AttackRange)) return;
|
||||||
|
|
||||||
|
if (Player.CustomCharacterController.IsSliding)
|
||||||
|
ApplyStun();
|
||||||
|
else
|
||||||
|
DealDamage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5e77164596e249bca15e09cdfc9ddac2
|
||||||
|
timeCreated: 1763228910
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
using Code.Configs;
|
||||||
|
using Reflex.Attributes;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Enemies
|
||||||
|
{
|
||||||
|
public class Fog : BaseEnemy
|
||||||
|
{
|
||||||
|
[Inject]
|
||||||
|
private void Construct(FogConfig fogConfig)
|
||||||
|
{
|
||||||
|
Damage = fogConfig.damage;
|
||||||
|
AttackCooldown = fogConfig.attackCooldown;
|
||||||
|
|
||||||
|
DetectionRange = fogConfig.detectionRange;
|
||||||
|
AttackRange = fogConfig.attackRange;
|
||||||
|
|
||||||
|
Speed = fogConfig.speed;
|
||||||
|
|
||||||
|
IsStunnable = fogConfig.isStunnable;
|
||||||
|
StunDuration = fogConfig.stunDuration;
|
||||||
|
|
||||||
|
UsesIdleMovement = fogConfig.usesIdleMovement;
|
||||||
|
IdleWanderRadius = fogConfig.idleWanderRadius;
|
||||||
|
IdleMoveDurationMin = fogConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = fogConfig.idleMoveDurationMax;
|
||||||
|
IdleMoveDurationMin = fogConfig.idleMoveDurationMin;
|
||||||
|
IdleMoveDurationMax = fogConfig.idleMoveDurationMax;
|
||||||
|
IdlePauseDurationMin = fogConfig.idlePauseDurationMin;
|
||||||
|
IdlePauseDurationMax = fogConfig.idlePauseDurationMax;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Awake()
|
||||||
|
{
|
||||||
|
base.Awake();
|
||||||
|
|
||||||
|
if (agent == null) return;
|
||||||
|
agent.enabled = false;
|
||||||
|
Destroy(agent);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void HandleMovement()
|
||||||
|
{
|
||||||
|
if (!Player) return;
|
||||||
|
|
||||||
|
var direction = (Player.transform.position - transform.position).normalized;
|
||||||
|
transform.position += direction * (Speed * Time.deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void HandleAttack()
|
||||||
|
{
|
||||||
|
if (!Player || PlayerHealth == null) return;
|
||||||
|
|
||||||
|
var distance = Vector3.Distance(transform.position, Player.transform.position);
|
||||||
|
|
||||||
|
if (!(distance < AttackRange)) return;
|
||||||
|
|
||||||
|
PlayerHealth.GetDamage(PlayerHealth.MaxHealthPoints);
|
||||||
|
base.ApplyEffectsToPlayer();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDrawGizmosSelected()
|
||||||
|
{
|
||||||
|
Gizmos.color = new Color(0.3f, 0.3f, 0.8f, 0.4f);
|
||||||
|
Gizmos.DrawSphere(transform.position, AttackRange);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4c70370426e4457aa9a56c77689158ff
|
||||||
|
timeCreated: 1763228955
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Code.Gameplay.Character.Core;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Player
|
||||||
|
{
|
||||||
|
public interface IPlayerProvider
|
||||||
|
{
|
||||||
|
CharacterProvider Character { get; }
|
||||||
|
PlayerHealth Health { get; }
|
||||||
|
bool IsSpawned { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8fdfaa773e8645d5a2d400c0317b9894
|
||||||
|
timeCreated: 1763237368
|
||||||
@@ -14,6 +14,7 @@ namespace Code.Gameplay.Player
|
|||||||
public class PlayerFactory : IPlayerFactory
|
public class PlayerFactory : IPlayerFactory
|
||||||
{
|
{
|
||||||
[Inject] PlayerConfig _playerConfig;
|
[Inject] PlayerConfig _playerConfig;
|
||||||
|
[Inject] private IPlayerProvider _playerProvider;
|
||||||
|
|
||||||
public PlayerHealth CreatePlayerHealth(int count = -1)
|
public PlayerHealth CreatePlayerHealth(int count = -1)
|
||||||
{
|
{
|
||||||
@@ -25,14 +26,20 @@ namespace Code.Gameplay.Player
|
|||||||
|
|
||||||
public async UniTask<CharacterProvider> CreatePlayer()
|
public async UniTask<CharacterProvider> CreatePlayer()
|
||||||
{
|
{
|
||||||
CharacterProvider characterProvider = (await Addressables.InstantiateAsync(_playerConfig.characterPrefab).ToUniTask()).GetComponent<CharacterProvider>();
|
var go = await Addressables.InstantiateAsync(_playerConfig.characterPrefab).ToUniTask();
|
||||||
AttributeInjector.Inject(characterProvider, Container.ProjectContainer);
|
var provider = go.GetComponent<CharacterProvider>();
|
||||||
AttributeInjector.Inject(characterProvider.CustomCharacterController, Container.ProjectContainer);
|
|
||||||
return characterProvider;
|
AttributeInjector.Inject(provider, Container.ProjectContainer);
|
||||||
|
AttributeInjector.Inject(provider.CustomCharacterController, Container.ProjectContainer);
|
||||||
|
|
||||||
|
((PlayerProvider)_playerProvider).SetPlayer(provider, _playerConfig);
|
||||||
|
|
||||||
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ReleasePlayer(CharacterProvider characterProvider)
|
public void ReleasePlayer(CharacterProvider characterProvider)
|
||||||
{
|
{
|
||||||
|
((PlayerProvider)_playerProvider).ClearPlayer();
|
||||||
Addressables.ReleaseInstance(characterProvider.gameObject);
|
Addressables.ReleaseInstance(characterProvider.gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
using Code.Configs;
|
||||||
|
using Code.Gameplay.Character.Core;
|
||||||
|
|
||||||
|
namespace Code.Gameplay.Player
|
||||||
|
{
|
||||||
|
public class PlayerProvider : IPlayerProvider
|
||||||
|
{
|
||||||
|
public CharacterProvider Character { get; private set; }
|
||||||
|
|
||||||
|
public PlayerHealth Health { get; private set; }
|
||||||
|
|
||||||
|
public bool IsSpawned => Character != null;
|
||||||
|
|
||||||
|
internal void SetPlayer(CharacterProvider character, PlayerConfig config)
|
||||||
|
{
|
||||||
|
Character = character;
|
||||||
|
Health = new PlayerHealth(config.maxHealth);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void ClearPlayer()
|
||||||
|
{
|
||||||
|
Character = null;
|
||||||
|
Health = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0dbe29c5f0e9431db8c8da25eeb8fa95
|
||||||
|
timeCreated: 1763237388
|
||||||
@@ -21,6 +21,9 @@ namespace Code.StaticData
|
|||||||
SFXListConfig SFXListConfig { get; }
|
SFXListConfig SFXListConfig { get; }
|
||||||
DispatcherSoundListConfig DispatcherSoundListConfig { get; }
|
DispatcherSoundListConfig DispatcherSoundListConfig { get; }
|
||||||
EnemiesSoundListConfig EnemiesSoundListConfig { get; }
|
EnemiesSoundListConfig EnemiesSoundListConfig { get; }
|
||||||
|
DrunkenGrandpaConfig DrunkenGrandpaConfig { get; }
|
||||||
|
CockroachConfig CockroachConfig { get; }
|
||||||
|
FogConfig FogConfig { get; }
|
||||||
void Load();
|
void Load();
|
||||||
Task<T> InstantiateAsset<T>(AssetReference assetReference) where T : Behaviour;
|
Task<T> InstantiateAsset<T>(AssetReference assetReference) where T : Behaviour;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ namespace Code.StaticData
|
|||||||
public SFXListConfig SFXListConfig { get; private set; }
|
public SFXListConfig SFXListConfig { get; private set; }
|
||||||
public DispatcherSoundListConfig DispatcherSoundListConfig { get; private set; }
|
public DispatcherSoundListConfig DispatcherSoundListConfig { get; private set; }
|
||||||
public EnemiesSoundListConfig EnemiesSoundListConfig { get; private set; }
|
public EnemiesSoundListConfig EnemiesSoundListConfig { get; private set; }
|
||||||
|
public DrunkenGrandpaConfig DrunkenGrandpaConfig {get; private set;}
|
||||||
|
public CockroachConfig CockroachConfig { get; private set; }
|
||||||
|
public FogConfig FogConfig { get; private set; }
|
||||||
|
|
||||||
public void Load()
|
public void Load()
|
||||||
{
|
{
|
||||||
@@ -31,6 +34,7 @@ namespace Code.StaticData
|
|||||||
PlayerConfig = Resources.Load<PlayerConfig>(string.Format(StringPaths.ConfigSingle, "App", "PlayerConfig"));
|
PlayerConfig = Resources.Load<PlayerConfig>(string.Format(StringPaths.ConfigSingle, "App", "PlayerConfig"));
|
||||||
|
|
||||||
LoadAudioConfigs();
|
LoadAudioConfigs();
|
||||||
|
LoadEnemiesConfigs();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadAudioConfigs()
|
private void LoadAudioConfigs()
|
||||||
@@ -42,6 +46,13 @@ namespace Code.StaticData
|
|||||||
EnemiesSoundListConfig = Resources.Load<EnemiesSoundListConfig>(string.Format(StringPaths.ConfigSingle, "Audio", "EnemiesSoundListConfig"));
|
EnemiesSoundListConfig = Resources.Load<EnemiesSoundListConfig>(string.Format(StringPaths.ConfigSingle, "Audio", "EnemiesSoundListConfig"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void LoadEnemiesConfigs()
|
||||||
|
{
|
||||||
|
DrunkenGrandpaConfig = Resources.Load<DrunkenGrandpaConfig>(string.Format(StringPaths.ConfigSingle, "Enemies", "DrunkenGrandpaConfig"));
|
||||||
|
CockroachConfig = Resources.Load<CockroachConfig>(string.Format(StringPaths.ConfigSingle, "Enemies", "CockroachConfig"));
|
||||||
|
FogConfig = Resources.Load<FogConfig>(string.Format(StringPaths.ConfigSingle, "Enemies", "FogConfig"));
|
||||||
|
}
|
||||||
|
|
||||||
public async Task<T> InstantiateAsset<T>(AssetReference assetReference) where T : Behaviour
|
public async Task<T> InstantiateAsset<T>(AssetReference assetReference) where T : Behaviour
|
||||||
{
|
{
|
||||||
return (await Addressables.InstantiateAsync(assetReference).ToUniTask()).GetComponent<T>();
|
return (await Addressables.InstantiateAsync(assetReference).ToUniTask()).GetComponent<T>();
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9dec9aa8ce6e1be92b7f1daeffd7a9b6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 7bc162d3127949aa950d0738beee99a4, type: 3}
|
||||||
|
m_Name: CockroachConfig
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Code.Configs.CockroachConfig
|
||||||
|
cockroachPrefab:
|
||||||
|
m_AssetGUID:
|
||||||
|
m_SubObjectName:
|
||||||
|
m_SubObjectType:
|
||||||
|
m_SubObjectGUID:
|
||||||
|
m_EditorAssetChanged: 0
|
||||||
|
damage: 2
|
||||||
|
attackCooldown: 1.5
|
||||||
|
detectionRange: 20
|
||||||
|
attackRange: 1.3
|
||||||
|
speed: 6
|
||||||
|
isStunnable: 0
|
||||||
|
stunDuration: 0
|
||||||
|
usesIdleMovement: 1
|
||||||
|
idleWanderRadius: 3
|
||||||
|
idleMoveDurationMin: 0.3
|
||||||
|
idleMoveDurationMax: 1
|
||||||
|
idlePauseDurationMin: 0.1
|
||||||
|
idlePauseDurationMax: 0.8
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ac804127a406a864f8c178cd56e2b210
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4d157e8891074b90957a7434cff0ae71, type: 3}
|
||||||
|
m_Name: DrunkenGrandpaConfig
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Code.Configs.DrunkenGrandpaConfig
|
||||||
|
drunkenGrandpaPrefab:
|
||||||
|
m_AssetGUID:
|
||||||
|
m_SubObjectName:
|
||||||
|
m_SubObjectType:
|
||||||
|
m_SubObjectGUID:
|
||||||
|
m_EditorAssetChanged: 0
|
||||||
|
damage: 2
|
||||||
|
attackCooldown: 5
|
||||||
|
detectionRange: 10
|
||||||
|
attackRange: 1.5
|
||||||
|
speed: 3
|
||||||
|
isStunnable: 1
|
||||||
|
stunDuration: 3
|
||||||
|
usesIdleMovement: 1
|
||||||
|
idleWanderRadius: 5
|
||||||
|
idleMoveDurationMin: 1
|
||||||
|
idleMoveDurationMax: 5
|
||||||
|
idlePauseDurationMin: 3
|
||||||
|
idlePauseDurationMax: 5
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fd5e843255fee395ea687b9d5ad5741d
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: aa4dd2a5cce24902a2918488b5751f2f, type: 3}
|
||||||
|
m_Name: FogConfig
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Code.Configs.FogConfig
|
||||||
|
fogPrefab:
|
||||||
|
m_AssetGUID:
|
||||||
|
m_SubObjectName:
|
||||||
|
m_SubObjectType:
|
||||||
|
m_SubObjectGUID:
|
||||||
|
m_EditorAssetChanged: 0
|
||||||
|
damage: 2147483647
|
||||||
|
attackCooldown: 0
|
||||||
|
detectionRange: 0
|
||||||
|
attackRange: 5
|
||||||
|
speed: 1.5
|
||||||
|
isStunnable: 0
|
||||||
|
stunDuration: 0
|
||||||
|
usesIdleMovement: 0
|
||||||
|
idleWanderRadius: 0
|
||||||
|
idleMoveDurationMin: 0
|
||||||
|
idleMoveDurationMax: 0
|
||||||
|
idlePauseDurationMin: 0
|
||||||
|
idlePauseDurationMax: 0
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 367017c1e176ddbbd9135cb82dbd94d2
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -257,7 +257,7 @@ GameObject:
|
|||||||
- component: {fileID: 1150185452844372375}
|
- component: {fileID: 1150185452844372375}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: CharacterControllerFullMono
|
m_Name: CharacterControllerFullMono
|
||||||
m_TagString: Untagged
|
m_TagString: Player
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6e3b9428d285e53a4a265495e70bd230
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 59150559bf28464b5a553799889b9b80
|
guid: 2188911eb1ce2aab6851107101e1c3a9
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6d1bd97bcc2b2f856b547db177c45343
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f141956d573a6c014a7653b110cff1c7
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1238ac2c7273e4b2680e254879b67031
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cfed5362f7f62ede5aff38c4f9825bff
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 221c16e7b435aa11bb7fb017a6c25940
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bc436e9b7e8e79c3ba44a961ab511805
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b295bea0985fc0b21bc1d5a27efc9d73
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7cf3815c8fe4e4632ac9bd96b09731ed
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7199ea3a89b8667e1a22853abf53df2c
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 59150559bf28464b5a553799889b9b80
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -453,6 +453,136 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0}
|
||||||
|
--- !u!1 &1814367943
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1814367948}
|
||||||
|
- component: {fileID: 1814367947}
|
||||||
|
- component: {fileID: 1814367946}
|
||||||
|
- component: {fileID: 1814367945}
|
||||||
|
- component: {fileID: 1814367944}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: fog
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &1814367944
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1814367943}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4c70370426e4457aa9a56c77689158ff, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Code.Gameplay.Enemies.FogEnemy
|
||||||
|
damage: 1
|
||||||
|
detectionRange: 10
|
||||||
|
stunDuration: 3
|
||||||
|
agent: {fileID: 0}
|
||||||
|
playerTransform: {fileID: 0}
|
||||||
|
enemyCollider: {fileID: 0}
|
||||||
|
--- !u!65 &1814367945
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1814367943}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!23 &1814367946
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1814367943}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_ForceMeshLod: -1
|
||||||
|
m_MeshLodSelectionBias: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_GlobalIlluminationMeshLod: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!33 &1814367947
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1814367943}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!4 &1814367948
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1814367943}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -1.07337, y: 0.71, z: -6.0681}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &1959874989
|
--- !u!1 &1959874989
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -563,3 +693,4 @@ SceneRoots:
|
|||||||
- {fileID: 481156070}
|
- {fileID: 481156070}
|
||||||
- {fileID: 1376862595}
|
- {fileID: 1376862595}
|
||||||
- {fileID: 1543748509}
|
- {fileID: 1543748509}
|
||||||
|
- {fileID: 1814367948}
|
||||||
@@ -137,7 +137,7 @@ GameObject:
|
|||||||
- component: {fileID: 6003242550544221350}
|
- component: {fileID: 6003242550544221350}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: CharacterController
|
m_Name: CharacterController
|
||||||
m_TagString: Untagged
|
m_TagString: Player
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ EditorBuildSettings:
|
|||||||
path: Assets/Resources/Scenes/MainMenu.unity
|
path: Assets/Resources/Scenes/MainMenu.unity
|
||||||
guid: fb047145aa42fa81f940ba98cbe0a32f
|
guid: fb047145aa42fa81f940ba98cbe0a32f
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Resources/Scenes/Gameplay.unity
|
path: Assets/Resources/Scenes/GameplayMobsDev.unity
|
||||||
guid: 59150559bf28464b5a553799889b9b80
|
guid: 59150559bf28464b5a553799889b9b80
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Resources/Scenes/MovementDev.unity
|
path: Assets/Resources/Scenes/MovementDev.unity
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ NavMeshProjectSettings:
|
|||||||
cost: 1
|
cost: 1
|
||||||
- name: Jump
|
- name: Jump
|
||||||
cost: 2
|
cost: 2
|
||||||
- name:
|
- name: Cockroach
|
||||||
cost: 1
|
cost: 1
|
||||||
- name:
|
- name:
|
||||||
cost: 1
|
cost: 1
|
||||||
@@ -69,9 +69,9 @@ NavMeshProjectSettings:
|
|||||||
cost: 1
|
cost: 1
|
||||||
- name:
|
- name:
|
||||||
cost: 1
|
cost: 1
|
||||||
m_LastAgentTypeID: -887442657
|
m_LastAgentTypeID: -1372625422
|
||||||
m_Settings:
|
m_Settings:
|
||||||
- serializedVersion: 2
|
- serializedVersion: 3
|
||||||
agentTypeID: 0
|
agentTypeID: 0
|
||||||
agentRadius: 0.5
|
agentRadius: 0.5
|
||||||
agentHeight: 2
|
agentHeight: 2
|
||||||
@@ -84,8 +84,29 @@ NavMeshProjectSettings:
|
|||||||
cellSize: 0.16666667
|
cellSize: 0.16666667
|
||||||
manualTileSize: 0
|
manualTileSize: 0
|
||||||
tileSize: 256
|
tileSize: 256
|
||||||
accuratePlacement: 0
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
agentTypeID: -1372625422
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.75
|
||||||
|
ledgeDropHeight: 5
|
||||||
|
maxJumpAcrossDistance: 5
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_SettingNames:
|
m_SettingNames:
|
||||||
- Humanoid
|
- Humanoid
|
||||||
|
- Cockroach
|
||||||
@@ -16,6 +16,10 @@ TagManager:
|
|||||||
-
|
-
|
||||||
- BakedShit
|
- BakedShit
|
||||||
- RealtimeShit
|
- RealtimeShit
|
||||||
|
- Walkable
|
||||||
|
- Climbable
|
||||||
|
-
|
||||||
|
-
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in new issue
Block a user