Работает как скрипт на emptyGameObject, через сериалайзы задаётся радиус спавна/деспавна и тип моба на спавн
11 lines
274 B
C#
11 lines
274 B
C#
using Cysharp.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace Code.Gameplay.Enemies
|
|
{
|
|
public interface IEnemyFactory
|
|
{
|
|
UniTask<BaseEnemy> CreateEnemy(EnemyType type, Vector3? position, Quaternion? rotation);
|
|
void ReleaseEnemy(BaseEnemy enemy);
|
|
}
|
|
} |