24 lines
660 B
C#
24 lines
660 B
C#
using UnityEngine;
|
|
|
|
namespace RR.Game2D.Behaviour.ScriptableObjects
|
|
{
|
|
[CreateAssetMenu(fileName = "EnemyControllerConfiguration", menuName = "Behaviour/Controllers/EnemyControllerConfiguration")]
|
|
public class EnemyControllerConfiguration : ScriptableObject
|
|
{
|
|
[Header("Обзор")]
|
|
public float viewDistance = 5f;
|
|
public float viewAngle = 60f;
|
|
|
|
[Header("Движение")]
|
|
public float moveSpeed = 4f;
|
|
public float acceleration = 10f;
|
|
|
|
[Header("Препятствия")]
|
|
public LayerMask obstacleMask;
|
|
|
|
[Header("Здоровье")]
|
|
public int maxHealth = 1;
|
|
}
|
|
}
|
|
|