public void applyToAll(apply func) { for(int i =0;i< all.Count;i++){ func(all[i] as GameObject,i); } }