Initial commit

This commit is contained in:
Mausham
2025-12-26 17:56:05 -08:00
commit 7cb0a26dae
453 changed files with 53483 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,17 @@
%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: 0874d02cb2d9daa4883a09464ed19de2, type: 3}
m_Name: CameraConfigSO
m_EditorClassIdentifier: CoreAssembly::Darkmatter.Core.CameraConfigSO
lookSensitivity: 10
topClampAngle: 50
bottomClampAngle: -30

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e862049a6864bb347903dec038b0ba28
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace Darkmatter.Core
{
[CreateAssetMenu(fileName = "CameraConfigSO", menuName = "Scriptable Objects/CameraConfigSO")]
public class CameraConfigSO : ScriptableObject
{
public float lookSensitivity = 10f;
public float topClampAngle = 50f;
public float bottomClampAngle = -30f;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0874d02cb2d9daa4883a09464ed19de2

View File

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

View File

@@ -0,0 +1,14 @@
%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: 94786f68f321b5249b0997193bb0036b, type: 3}
m_Name: InputReaderSO
m_EditorClassIdentifier: CoreAssembly::Darkmatter.Core.InputReaderSO

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0805b8520c4573a4e99ea101253c2c9f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,57 @@
using System;
using UnityEngine;
using UnityEngine.InputSystem;
namespace Darkmatter.Core
{
[CreateAssetMenu(fileName = "InputReaderSO", menuName = "Scriptable Objects/InputReaderSO")]
public class InputReaderSO : ScriptableObject, IInputReader, GameInputAction.IPlayerActions
{
public GameInputAction action;
public event Action OnJumpPerformed;
public bool isShooting { get; private set; }
public Vector2 moveInput { get; private set; }
public Vector2 lookInput { get; private set; }
private void OnEnable()
{
if (action == null)
{
action = new GameInputAction();
}
action.Enable();
action.Player.SetCallbacks(this);
}
private void OnDisable()
{
action.Player.Disable();
}
public void OnMove(InputAction.CallbackContext context)
{
moveInput = context.ReadValue<Vector2>();
}
public void OnLook(InputAction.CallbackContext context)
{
lookInput = context.ReadValue<Vector2>();
}
public void OnJump(InputAction.CallbackContext context)
{
if(context.performed)
{
OnJumpPerformed?.Invoke();
}
}
public void OnShoot(InputAction.CallbackContext context)
{
isShooting = context.ReadValueAsButton();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 94786f68f321b5249b0997193bb0036b

View File

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

View File

@@ -0,0 +1,17 @@
%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: d868e8202f5ceae4ea496e56b0db9db9, type: 3}
m_Name: PlayerConfigSO
m_EditorClassIdentifier: CoreAssembly::Darkmatter.Core.PlayerConfigSO
moveSpeed: 3
jumpForce: 5
gravity: -15

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 893990031b7e34e48aec7db96883252f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace Darkmatter.Core
{
[CreateAssetMenu(fileName = "PlayerConfigSO", menuName = "Scriptable Objects/PlayerConfigSO")]
public class PlayerConfigSO : ScriptableObject
{
public float moveSpeed = 3.0f;
public float jumpForce = 5f;
public float gravity = -15f;
}
}

View File

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