public void Odinakovie() { if (once) { Reload.interactable = false; Plus.interactable = false; for (int i = 0; i < gridModel.Grid.Count; i++) { gridModel.Grid[i].GetView().Disable(); } gridModel.Grid[0].GetView().Enable(); gridModel.Grid[1].GetView().Enable(); Alerts.AlertCall.CallWithText(null, null, Res.lang.Tutorial[0], Res.lang.Confirmation[2]); once = false; GAController.TutorialStageChange(0); } if (gridModel.Grid[0].Value == -1 && gridModel.Grid[1].Value == -1) { GAController.TutorialStageChange(1); once = true; stage = Stages.Desyat; } }
public void Repeat() { if (once) { for (int i = 0; i < gridModel.Grid.Count; i++) { gridModel.Grid[i].GetView().Disable(); } gridModel.Grid[5].GetView().Enable(); gridModel.Grid[6].GetView().Enable(); gridModel.Grid[7].GetView().Enable(); gridModel.Grid[25].GetView().Enable(); Alerts.AlertCall.CallWithText(null, null, Res.lang.Tutorial[3], Res.lang.Confirmation[1]); once = false; } if (gridModel.Grid[5].Value == -1 && gridModel.Grid[6].Value == -1 && gridModel.Grid[7].Value == -1 && gridModel.Grid[25].Value == -1) { GAController.TutorialStageChange(4); once = true; stage = Stages.FirstNlastRow; } }
private void End() { Reload.interactable = true; Plus.interactable = true; PlayerPrefsController.Tutorial = 1; Alerts.AlertCall.CallWithText(null, null, Res.lang.Tutorial[5], Res.lang.Confirmation[0]); foreach (var model in gridModel.Grid) { if (model.Value != -1) { model.GetView().Enable(); } } GAController.TutorialStageChange(99); stage = Stages.None; }
public void FirstNLastRow() { if (once) { for (int i = 0; i < gridModel.Grid.Count; i++) { gridModel.Grid[i].GetView().Disable(); } gridModel.Grid[8].GetView().Enable(); gridModel.Grid[9].GetView().Enable(); Alerts.AlertCall.CallWithText(null, null, Res.lang.Tutorial[4], Res.lang.Confirmation[4]); once = false; } if (gridModel.Grid.Count <= 18) { GAController.TutorialStageChange(5); once = true; stage = Stages.End; } }