Create All Needed Scripts

This commit is contained in:
2025-12-14 09:23:38 +08:00
parent 980b26dd5e
commit 6fe70bd113
53 changed files with 1988 additions and 195 deletions

View File

@@ -0,0 +1,16 @@
using Enums;
using Services;
using UnityEngine;
namespace Views {
public class GemView : MonoBehaviour {
private Gem gem;
public Gem Gem => this.gem;
public void UpdatePosition(Vector2Int positionBasedOnIndex) {
if (Vector2.Distance(this.transform.position, positionBasedOnIndex) > 0.01f) {
this.transform.position = Vector2.Lerp(this.transform.position, positionBasedOnIndex, 0.1f);
}
}
}
}