public List<GameObject> trees=new List<GameObject>();
void OnTriggerEnter(Collider col)
{
if (col.tag == "Tree")
{
trees.Add(col.gameObject);
}
}
void OnTriggerExit(Collider col)
{
if (col.tag == "Tree")
{
trees.Remove(col.gameObject);
}