Create All Needed Scripts
This commit is contained in:
23
Assets/Scripts/ScriptableObjects/GameVariables.cs
Normal file
23
Assets/Scripts/ScriptableObjects/GameVariables.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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 = 7;
|
||||
public float scoreSpeed = 5;
|
||||
|
||||
[HideInInspector]
|
||||
public int rowsSize = 7;
|
||||
[HideInInspector]
|
||||
public int colsSize = 7;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user