Assign GemSprite to BombPrefab
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Enums;
|
||||
using Structs;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Services {
|
||||
@@ -14,10 +15,10 @@ namespace Services {
|
||||
private GemType colorType;
|
||||
public GemType MatchColor => this.type == GemType.Bomb ? this.colorType : this.type;
|
||||
|
||||
public Gem(GemType type, Vector2Int position, int scoreValue, GemType? colorType = null) {
|
||||
public Gem(GemType type, Vector2Int position, GemTypeValues gemValue, GemType? colorType = null) {
|
||||
this.type = type;
|
||||
this.position = position;
|
||||
this.scoreValue = scoreValue;
|
||||
this.scoreValue = gemValue.scoreValue;
|
||||
|
||||
this.colorType = colorType ?? type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user