Files
match3-unity/Assets/Scripts/ScriptableObjects/GameVariables.cs
2025-12-16 20:34:13 +08:00

33 lines
997 B
C#

using System;
using System.Collections.Generic;
using Enums;
using Structs;
using UnityEngine;
using Views;
namespace ScriptableObjects {
[CreateAssetMenu(fileName = "GameVariables", menuName = "Game Variables")]
public class GameVariables : ScriptableObject {
[Header("Prefabs")]
public GameObject bgTilePrefabs;
public GemTypeValues[] gemsPrefabs;
[Header("Board Setup")]
public int width;
public int height;
[Header("Bomb")]
[Tooltip("How long before the gems around the bomb explode")]
public float bombDelay = 0.1f;
[Tooltip("How long before the bomb itself explodes")]
public float bombSelfDelay = 0.05f;
[Tooltip("How far the explosion reaches")]
public int bombRadius = 1;
[Header("Gem and Bomb Spawn")]
public float dropHeight = 1;
public float gemSpeed = 0.1f;
[Header("Score")]
public float scoreSpeed = 5;
}
}