Answer the question
In order to leave comments, you need to log in
To move or not to move the object (if not in three or more rows)?
Three in a row game. I started learning Unity, I don't know much yet.
When moving (screen) 1 object to 2 object, it will find a match and the fruit will fall down.
Implement such a condition: when moving (screen) 3 objects to 4 objects, it does not find a match and should not move these fruits (or move them back).
.....
if (GetAllAdjacentTiles().Contains(previousSelected.gameObject))
{
SwapSprite(previousSelected.render);
previousSelected.ClearAllMatches();
previousSelected.Deselect();
ClearAllMatches();
}
else
{
previousSelected.GetComponent<Tile>().Deselect();
Select();
}
.......
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question