separated logic for weapon code refactored
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user