Files
match3-unity/Assets/Scripts/ScriptableObjects/GameVariables.cs

27 lines
826 B
C#

using System.Collections.Generic;
using Enums;
using UnityEngine;
using Views;
//Done, moved to GameVariables scriptable object
namespace ScriptableObjects {
[CreateAssetMenu(fileName = "GameVariables", menuName = "Game Variables")]
public class GameVariables : ScriptableObject {
public GameObject bgTilePrefabs;
public GemView bombPrefab;
public GemView[] gemsPrefabs;
public GameObject[] destroyEffectPrefabs;
public float bonusAmount = 0.5f;
public float bombChance = 2f;
public int dropHeight = 1;
public float gemSpeed = 0.1f;
public float scoreSpeed = 5;
public int width;
public int height;
[HideInInspector]
public int rowsSize = 7;
[HideInInspector]
public int colsSize = 7;
}
}