Import Test files
This commit is contained in:
37
Assets/Scripts/SC_GameVariables.cs
Normal file
37
Assets/Scripts/SC_GameVariables.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user