SummerGame/Assets/_Project/Scripts/RunnerPart/Boxes/BoxData.cs

30 lines
740 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
namespace Boxes
{
[CreateAssetMenu(fileName = "NewBoxData", menuName = "Boxes/Box Data")]
public class BoxData : ScriptableObject
{
public enum BoxEffectType
{
AddScore,
LoseScore,
SpecialFurniture
}
[Header("Игровые параметры")]
public BoxEffectType effectType = BoxEffectType.AddScore;
[Tooltip("Значение эффекта (очки или секунды)")]
public float effectValue = 1;
[Tooltip("Вес спавна")]
public float spawnWeight = 10f;
[Header("Визуальное представление")]
public GameObject boxPrefab;
}
}