This commit is contained in:
2025-12-17 00:55:30 +08:00
parent 85b9767201
commit 3786863b00
13 changed files with 37 additions and 73 deletions

View File

@@ -4,15 +4,15 @@ using UnityEngine;
namespace Services {
public class Gem {
private GemType type;
private readonly GemType type;
private Vector2Int position;
public GemType Type => this.type;
public Vector2Int Position => this.position;
private int scoreValue;
private readonly int scoreValue;
public int ScoreValue => this.scoreValue;
private GemType colorType;
private readonly GemType colorType;
public GemType MatchColor => this.type == GemType.Bomb ? this.colorType : this.type;
public Gem(GemType type, Vector2Int position, GemTypeValues gemValue, GemType? colorType = null) {