started building logics for enemy

This commit is contained in:
Mausham
2025-12-30 22:51:33 +05:45
parent b59d12631f
commit 3aabc42bf8
76 changed files with 9832 additions and 82084 deletions

View File

@@ -0,0 +1,14 @@
using UnityEngine;
namespace Darkmatter.Core
{
public interface IReloadableWeapon
{
bool canAttack { get; }
bool isReloading { get; set; }
int AmmoCount { get; }
int initialAmmoCount { get; }
void Reload();
void Attack();
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8e1f1c00d28297145ae2503fa9cda9c4

View File

@@ -1,15 +0,0 @@
using UnityEngine;
namespace Darkmatter.Core
{
public interface IWeapon
{
public void Attack();
public void Reload();
bool canAttack { get; }
string WeaponName { get; }
public int AmmoCount { get; }
public int maxAmmoCount { get; }
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 9f82b92b1e5608845a9706ad20b155f8

View File

@@ -5,7 +5,7 @@ namespace Darkmatter.Core
{
public interface IPlayerAnim : IHumonoidAnim
{
public void PlayReloadAnim(IWeapon currentWeapon);
public void PlayReloadAnim(IReloadableWeapon reloadableWeapon);
void PlayShootAnim();
}
}