public Fish hookFish() { Random.seed = System.Environment.TickCount; int randomFish = Random.Range(0, fish.Count); hookedFish = fish[randomFish]; hookedFish.randomize(); // not needed anymore? Debug.Log("Min: " + hookedFish.getMinW()); Debug.Log("Max: " + hookedFish.getMaxW()); float randomWeight = Mathf.Round(Random.Range(hookedFish.getMinW(), hookedFish.getMaxW()) * 100f) / 100f; hookedFish.setWeight(randomWeight); // Debug.Log("Random Weight: " + randomWeight); // Debug.Log("Fish Weight: " + hookedFish.getWeight()); // Remove me, for debugging only // keepFish(hookedFish); return hookedFish; }