Files
match3-unity/Assets/Scripts/Models/Gem.cs
2025-12-15 02:34:59 +08:00

27 lines
681 B
C#

using Enums;
using UnityEngine;
namespace Services {
public class Gem {
private GemType type;
private Vector2Int position;
public GemType Type => this.type;
public Vector2Int Position => this.position;
private int scoreValue;
public int ScoreValue => this.scoreValue;
public bool isMatch = false;
public Gem(GemType type, Vector2Int position, int scoreValue) {
this.type = type;
this.position = position;
this.scoreValue = scoreValue;
}
public void SetPosition(Vector2Int position) {
this.position = position;
}
}
}