separated logic for weapon code refactored

This commit is contained in:
Mausham
2025-12-30 12:43:44 -08:00
parent 37dd15d1b9
commit 1a61f3c506
19 changed files with 157 additions and 191 deletions

View File

@@ -8,11 +8,13 @@ namespace Darkmatter.Presentation
{
public class CameraService : MonoBehaviour, ICameraService
{
public Camera mainCamera { get; private set; }
public CinemachineThirdPersonFollow AdsCamera;
[Inject] private IInputReader inputReader;
public bool isAiming = false;
private void Start()
{
mainCamera = Camera.main;
inputReader.OnAdsCameraSwitch += SwitchADSCamera;
AdsCamera.gameObject.SetActive(false);
}