void GenerateComponent()
    {
        for (int i = 0; i < fishCount; i++)
        {
            Vector3 RandomPosition = transform.position + new Vector3(Random.Range(-tankSize, tankSize), Random.Range(-tankSize, tankSize), Random.Range(-tankSize, tankSize));

            fishAgentsCmp[i] = new FishAgentComponent(i, tankSize, tankOffset, transform.position);
            fishAgentsCmp[i].abstrat_transform.Set(Instantiate(Fish).transform);
            fishAgentsCmp[i].abstrat_transform.Position = RandomPosition;
            fishAgentsCmp[i].abstrat_transform.Parent   = transform;
        }

        for (int i = 0; i < fishCount; i++)
        {
            fishAgentsCmp[i].SetFishList(fishAgentsCmp);
        }
    }
 public void showCohesionDebug(FishAgentComponent f)
 {
     Debug.DrawRay(f.lastPosition, f.Cohesion.normalized * 10, Color.green);
 }
 public void showSeparationDebug(FishAgentComponent f)
 {
     Debug.DrawRay(f.lastPosition, f.Separation.normalized * 10, Color.red);
 }
 public void showAlignmentDebug(FishAgentComponent f)
 {
     Debug.DrawRay(f.lastPosition, f.Alignment.normalized * 10, Color.blue);
 }