Properly Call FillBoard

This commit is contained in:
2025-12-14 11:01:04 +08:00
parent 6abccbe6d8
commit 68046b8960
5 changed files with 593 additions and 591 deletions

View File

@@ -1,38 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//Done
//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
}
// using System.Collections;
// using System.Collections.Generic;
// using UnityEngine;
//
// //Done
// //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
// }