Imported localizaiton and font.

Fixed tutorial
This commit is contained in:
LadyEbony 2020-08-22 17:09:07 -07:00
parent d45841455b
commit 3cd87d9c4c
4 changed files with 4084 additions and 1502 deletions

View file

@ -24,6 +24,7 @@ public class Tutorial : MonoBehaviour {
// Start is called before the first frame update
void Start() {
board.Setup();
board.StartGame();
board.AIEnabled = true; // Disable player input on the board
tutorialText = GetComponent<TMP_Text>();
@ -156,23 +157,19 @@ public class Tutorial : MonoBehaviour {
board.playerRotation = i % 4;
yield return new WaitForSeconds(0.5f);
}
activePatchyNumber = 3;
SetText("TUTORIAL_EXTRA3", "Finally, be cautious, as if your board fills up, it will collapse and you will lose.");
for(int i = 0; i < 12; ++i) {
yield return new WaitForSeconds(0.3f);
yield return new WaitForSeconds(0.15f);
for (int j = 0; j < GameBoard.COLUMN; ++j) {
yield return new WaitForSeconds(0.1f);
yield return new WaitForSeconds(0.05f);
bs[j].Add(TileInfo.CreateRandomTrashTile());
}
}
for (int x = 0; x < bs.Count; ++x) {
var col = bs[x];
for (int y = 0; y < col.Count; ++y) {
board.render.Crumble(col[y], (x, y));
}
}
// Now, re-initialize the board, so those falling pieces are the last of our board
bs = BoardStateExtension.Initialize();
board.Clear();
yield return new WaitForSeconds(5f);
activePatchyNumber = 1;
SetText("TUTORIAL_EXTRA4", "That's all I have to share with you, please enjoy playing Luminous Strike");