Initial commit
This commit is contained in:
8
Assets/Darkmatter/Code/Core/Contracts/Player.meta
Normal file
8
Assets/Darkmatter/Code/Core/Contracts/Player.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1df03228b6e72bc4397493f4ed9f8ba7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IHumonoidAnim
|
||||
{
|
||||
void PlayJumpAnim();
|
||||
void PlayMovementAnim(Vector2 velocity);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a12b671db097ec4ca9a6d81b9843c9e
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlayerAnim : IHumonoidAnim
|
||||
{
|
||||
void PlayShootAnim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b737e58ea9c4574abb8e4c7c5b8eaa0
|
||||
15
Assets/Darkmatter/Code/Core/Contracts/Player/IPlayerPawn.cs
Normal file
15
Assets/Darkmatter/Code/Core/Contracts/Player/IPlayerPawn.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlayerPawn
|
||||
{
|
||||
Camera mainCamera { get; }
|
||||
bool isGrounded { get; }
|
||||
|
||||
void Jump(float jumpForce);
|
||||
|
||||
void Move(Vector3 motion);
|
||||
void SetCameraRotation(float pitch, float yaw);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2804a4028b617e43a4dc4049b19c5b5
|
||||
8
Assets/Darkmatter/Code/Core/Contracts/Services.meta
Normal file
8
Assets/Darkmatter/Code/Core/Contracts/Services.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f3cc373d4ed1bd94ba433029245b72f5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IInputReader
|
||||
{
|
||||
public event Action OnJumpPerformed;
|
||||
public Vector2 moveInput { get; }
|
||||
public Vector2 lookInput { get; }
|
||||
public bool isShooting { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45f4fffcfa5f98247af8885708c3e11d
|
||||
8
Assets/Darkmatter/Code/Core/Contracts/States.meta
Normal file
8
Assets/Darkmatter/Code/Core/Contracts/States.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3d1c4314960db14dbc459d446baba49
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
13
Assets/Darkmatter/Code/Core/Contracts/States/IState.cs
Normal file
13
Assets/Darkmatter/Code/Core/Contracts/States/IState.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IState
|
||||
{
|
||||
void Enter();
|
||||
void Update();
|
||||
|
||||
void LateUpdate();
|
||||
void Exit();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3508c66c9649d76439537bb7e9532896
|
||||
Reference in New Issue
Block a user