21 lines
654 B
C#
21 lines
654 B
C#
using UnityEngine;
|
|
using RR.Game2D.Entities.Projectiles;
|
|
|
|
namespace RR.Game2D.Behaviour.ScriptableObjects
|
|
{
|
|
[CreateAssetMenu(fileName = "EnemyFireConfiguration", menuName = "Scriptable Objects/EnemyFireConfiguration")]
|
|
public class EnemyFireConfiguration : ScriptableObject
|
|
{
|
|
[Header("Бросок")]
|
|
public float throwCooldown = 5f;
|
|
public float throwSpeed = 20f;
|
|
|
|
[Header("Снаряд")]
|
|
public EnemyBasicProjectile projectilePrefab;
|
|
public float projectileLifetime = 1f;
|
|
public bool projectileDespawnInstantly = false;
|
|
public float projectileFallGravityScale = 3f;
|
|
}
|
|
}
|
|
|