added gamescreen UI and simple start menu

This commit is contained in:
Mausham
2026-01-04 16:41:13 -08:00
parent dcf3bead16
commit 589260292c
508 changed files with 247792 additions and 516 deletions

View File

@@ -44,6 +44,7 @@ namespace Darkmatter.Domain
private void HandleAttack()
{
Vector3 dir = (enemyPawn.PlayerTarget.position - enemyPawn.ReturnMyPos()).normalized;
enemyPawn.GameObject.transform.rotation = Quaternion.LookRotation(dir);
//rotate towards player and handle Attack here
}

View File

@@ -16,7 +16,8 @@ namespace Darkmatter.Domain
[Inject] public readonly IReloadableWeapon currentWeapon;
[Inject] public readonly PlayerConfigSO playerConfig;
[Inject] public readonly CameraConfigSO cameraConfig;
[Inject] public readonly IAudioService audioService;
[Inject] public readonly IAudioService audioService;
[Inject] public readonly IGameScreenController gameScreenController;
private Vector3 moveDir;
private float Yaw;
@@ -59,11 +60,14 @@ namespace Darkmatter.Domain
{
audioService.PlaySFX(AudioId.Gun_Fire,0.1f);
currentWeapon.Attack();
gameScreenController.UpdateFireableBulletCount(currentWeapon.AmmoCount);
}
if (currentWeapon.AmmoCount == 0 && !currentWeapon.isReloading)
{
audioService.PlaySFX(AudioId.Gun_Reload, 0.1f);
playerAnim.PlayReloadAnim(currentWeapon);
gameScreenController.UpdateFireableBulletCount(40);
}
}
@@ -73,9 +77,9 @@ namespace Darkmatter.Domain
{
audioService.PlaySFX(AudioId.Gun_Reload, 0.1f);
playerAnim.PlayReloadAnim(currentWeapon);
gameScreenController.UpdateFireableBulletCount(40);
}
}
}
}