private void OnLeftMouseButtonClicked() { if (mine && !marked) { if (sr.sprite != mistakeTexture) { if (ec.GetTimer() > 0) { ec.TimerModify(-2.0f); } sr.sprite = mistakeTexture; ec.ClickedBugCountUp(); explodeAudio.Play(); } } else if (!marked) { LoadTexture(GridControl.AdjacentMines(x, y)); GridControl.FFuncover(x, y, new bool[GridControl.w, GridControl.h]); if (GridControl.IsFinished()) { print("you win"); } } }