Removed Unnecessary stuff

This commit is contained in:
Savya Bikram Shah
2026-05-27 12:56:19 +05:45
parent a1d3788def
commit f18b78db24
23 changed files with 9 additions and 505 deletions

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 588d1c926497b491c96d2f405876b176
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,19 +0,0 @@
using Darkmatter.Core.Contracts.Services.Inputs;
using Darkmatter.Libs.Installers;
using Darkmatter.Services.Inputs.Readers;
using UnityEngine;
using VContainer;
using VContainer.Unity;
namespace Darkmatter.Services.Inputs
{
public class InputServiceModule : MonoBehaviour, IServiceModule
{
[SerializeField] private InputReaderSO inputReaderSO;
public void Register(IContainerBuilder builder)
{
builder.RegisterComponent<IInputReader>(inputReaderSO);
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 1b23ca8ea5ee647ddba0712811953811

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2e8e28c4942b5410d962cbff40ac302f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,47 +0,0 @@
using System;
using Darkmatter.Core.Contracts.Services.Inputs;
using UnityEngine;
using UnityEngine.InputSystem;
namespace Darkmatter.Services.Inputs.Readers
{
[CreateAssetMenu(menuName = "Darkmatter/Inputs/New Input Reader")]
public class InputReaderSO : ScriptableObject, IInputReader, GameInputs.IPlayerActions
{
public Vector2 TouchPosition { get; private set; }
public event Action OnTouchStart;
public event Action OnTouchEnd;
private GameInputs _gameInputActions;
private void OnEnable()
{
_gameInputActions = new GameInputs();
_gameInputActions.Player.SetCallbacks(this);
_gameInputActions.Enable();
}
public void OnTouchPosition(InputAction.CallbackContext context)
{
TouchPosition = context.ReadValue<Vector2>();
}
public void OnTouched(InputAction.CallbackContext context)
{
if(context.started)
OnTouchStart?.Invoke();
else if(context.canceled)
OnTouchEnd?.Invoke();
}
private void OnDisable()
{
if (_gameInputActions != null)
{
_gameInputActions.Disable();
_gameInputActions.Dispose();
_gameInputActions = null;
}
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: c7a7f36a3426c43b7a1ceeaa853bdc3e