38 lines
892 B
C#
38 lines
892 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
//This is basically just the settings, this can maybe be a ScriptableObject
|
|
public class SC_GameVariables : MonoBehaviour
|
|
{
|
|
public GameObject bgTilePrefabs;
|
|
public SC_Gem bomb;
|
|
public SC_Gem[] gems;
|
|
public float bonusAmount = 0.5f;
|
|
public float bombChance = 2f;
|
|
public int dropHeight = 0;
|
|
public float gemSpeed;
|
|
public float scoreSpeed = 5;
|
|
|
|
[HideInInspector]
|
|
public int rowsSize = 7;
|
|
[HideInInspector]
|
|
public int colsSize = 7;
|
|
|
|
#region Singleton
|
|
|
|
static SC_GameVariables instance;
|
|
public static SC_GameVariables Instance
|
|
{
|
|
get
|
|
{
|
|
if (instance == null)
|
|
instance = GameObject.Find("SC_GameVariables").GetComponent<SC_GameVariables>();
|
|
|
|
return instance;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|