Files
match3-unity/Assets/Scripts/ScriptableObjects/GameVariables.cs
2025-12-17 00:11:17 +08:00

31 lines
891 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 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;
}
}