enemy spawner

This commit is contained in:
2025-10-26 14:17:31 +01:00
parent 20d3b46834
commit 40a62b5b5a
2102 changed files with 1255290 additions and 70 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
namespace MegaKoop.Game.Vfx
{
[CreateAssetMenu(fileName = "ProjectileImpactVfxSettings", menuName = "MegaKoop/VFX/Projectile Impact Settings")]
public class ProjectileImpactVfxSettings : ScriptableObject
{
public const string ResourcePath = "ProjectileImpactVfxSettings";
[SerializeField] private GameObject heroImpactPrefab;
[SerializeField] private GameObject enemyImpactPrefab;
[SerializeField] private float fallbackLifetime = 4f;
public GameObject HeroImpactPrefab => heroImpactPrefab;
public GameObject EnemyImpactPrefab => enemyImpactPrefab;
public float FallbackLifetime => Mathf.Max(0.5f, fallbackLifetime);
public static ProjectileImpactVfxSettings LoadFromResources()
{
return Resources.Load<ProjectileImpactVfxSettings>(ResourcePath);
}
}
}