32 lines
685 B
C#
32 lines
685 B
C#
using System;
|
|
using Code.Infrastructure.Generators;
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
namespace Code.Example.Platformer.Entity
|
|
{
|
|
[Config("Configs/Gameplay/Platformer/EnemySettings", true)]
|
|
public class PlatformerEnemySettings
|
|
{
|
|
[ToConfig] public PlatformerEnemyData racerData;
|
|
|
|
[ToConfig] public AssetReference prefabReference;
|
|
}
|
|
|
|
[Serializable]
|
|
public struct PlatformerEnemyData
|
|
{
|
|
public string name;
|
|
public float speed;
|
|
public int damage;
|
|
public PlatformerEnemyType type;
|
|
}
|
|
|
|
public enum PlatformerEnemyType
|
|
{
|
|
Dummy
|
|
}
|
|
public class PlatformerEnemyFactory
|
|
{
|
|
|
|
}
|
|
} |