private void Update() { #if !UNITY_EDITOR if (Input.touchCount >= 1) { if (Input.touches[0].phase == TouchPhase.Ended) { if (BonusController.Instance.ListBonus[1].GetActive() && activate) { Vibration.Heavy(); BonusController.Instance.ListBonus[1].Do?.Invoke(GridController.Instance.gridModel, thisCellView.Index, null, null); GridController.Instance.RemoveRow(false); GridController.Instance.SavedGrids.UpdateListGrid(GridController.Instance.gridModel); GridController.Instance.GridTransform.parent.GetComponent <ScrollRect>().enabled = true; foreach (var item in GridController.Instance.gridModel.Grid) { item.GetView().DeactivateImmediate(); } } } } #endif #if UNITY_EDITOR if (Input.GetMouseButtonUp(0) && activate) { if (BonusController.Instance.ListBonus[1].GetActive()) { Vibration.Heavy(); BonusController.Instance.ListBonus[1].Do?.Invoke(GridController.Instance.gridModel, thisCellView.Index, null, null); GridController.Instance.RemoveRow(false); GridController.Instance.SavedGrids.UpdateListGrid(GridController.Instance.gridModel); GridController.Instance.GridTransform.parent.GetComponent <ScrollRect>().enabled = true; foreach (var item in GridController.Instance.gridModel.Grid) { item.GetView().DeactivateImmediate(); } } } #endif }