Fixed Object Pooling and cascading

This commit is contained in:
2025-12-14 19:19:40 +08:00
parent 68046b8960
commit 95b43ed772
13 changed files with 154 additions and 40 deletions

View File

@@ -53,7 +53,6 @@
// this.scGameLogic = _ScGameLogic;
// }
//
// //Not every gem needs this
// private void OnMouseDown()
// {
// if (this.scGameLogic.CurrentState == GameState.Move)
@@ -63,7 +62,6 @@
// }
// }
//
// //Not every gem needs this
// private void CalculateAngle()
// {
// this.swipeAngle = Mathf.Atan2(this.finalTouchPosition.y - this.firstTouchPosition.y, this.finalTouchPosition.x - this.firstTouchPosition.x);
@@ -73,7 +71,6 @@
// MovePieces();
// }
//
// //Not every gem needs this, maybe
// private void MovePieces()
// {
// this.previousPos = this.posIndex;
@@ -110,7 +107,6 @@
// StartCoroutine(CheckMoveCo());
// }
//
// //Why are we checking matches on the Gem itself
// public IEnumerator CheckMoveCo()
// {
// this.scGameLogic.SetState(GameState.Wait);