private void OnMouseUp() { endLoc = Camera.main.ScreenToWorldPoint(Input.mousePosition); FadeOut(); CalculateVector(); if (Mathf.Abs(lineVector.x) > 1.0f || Mathf.Abs(lineVector.y) > 1.0f) { float points = ScorePoints(CompareVector()); food.CutSegment(points); EventSystem.instance.fireEvent(new KnifeCutEvent(food.GetFoodType())); } else { ReInitThis(); } }