started adding enemy factory

This commit is contained in:
Mausham
2025-12-31 17:14:20 -08:00
parent 3aabc42bf8
commit 8eafd8bb60
130 changed files with 49524 additions and 46086 deletions

View File

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

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace Darkmatter.Core
{
public interface IEnemyAnimController
{
public void PlayWalkAnim(bool value);
public void PlayAttackAnim(bool value);
public void PlayeChaseAnim(bool value);
public void PlayDeadAnim();
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 068407f730880e34e9512e0a7b6aa189

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
namespace Darkmatter.Core
{
public interface IEnemyPawn : IDamageable
{
void InitializeFromFactory();
bool isDead { get; }
NavMeshAgent EnemyAI { get; }
List<Transform> PatrolPoints { get; }
void SetDestination(Vector3 destination);
Vector3 ReturnMyPos();
Transform PlayerTarget { get; }
}
}

View File

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

View File

@@ -1,9 +1,12 @@
using UnityEngine;
using System;
namespace Darkmatter.Core
{
public interface IDamageable
{
event Action<float> OnHealthDecreased;
float Health { get; set; }
void TakeDamage(float damage);
void Die();
}

View File

@@ -5,6 +5,5 @@ namespace Darkmatter.Core
public interface IHumonoidAnim
{
void PlayJumpAnim();
void PlayMovementAnim(Vector2 velocity);
}
}

View File

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