separated weapon class left to separate logic and implementation
This commit is contained in:
13
Assets/Darkmatter/Code/Core/Contracts/Others/IWeapon.cs
Normal file
13
Assets/Darkmatter/Code/Core/Contracts/Others/IWeapon.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IWeapon
|
||||
{
|
||||
public void Attack();
|
||||
public void Reload();
|
||||
bool canAttack { get; }
|
||||
string WeaponName { get; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f82b92b1e5608845a9706ad20b155f8
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IAimProvider
|
||||
{
|
||||
public Vector3 AimDir { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebad764a0da2b7b4d8273baf63dd5500
|
||||
Reference in New Issue
Block a user