private void Update() { putChecker(); showPossibleMoves(); moveChecker(); removeChecker(); if (Input.GetKeyDown(KeyCode.Mouse1)) { Vector2Int?pos = getMouseToBoardPos(); if (_chackers != null && pos != null && _chackers[pos.Value.x, pos.Value.y] == null) { _toEnd = getField(pos.Value.x, pos.Value.y).script; _toEnd.StartParticle(); } } if (Input.GetKeyUp(KeyCode.Mouse1) && _toEnd) { _toEnd.EndParticle(); } }