using System.Collections; using System.Collections.Generic; using UnityEngine; public class Traps : MonoBehaviour { public List ConveyorBelts; public List CrushingBoulders; public List CubesWithCrystals; public List FloatingOnWater; public List InGroundTraps; public List ShootingCannons; public void environmentTurn() { for(int a = 0; a < ConveyorBelts.Count; a++) { ConveyorBelts[a].GetComponent().Animate(); } for (int b = 0; b < CrushingBoulders.Count; b++) { CrushingBoulders[b].GetComponent().Animate(); } for (int c = 0; c < CubesWithCrystals.Count; c++) { CubesWithCrystals[c].GetComponent().Animate(); } for (int d = 0; d < FloatingOnWater.Count; d++) { FloatingOnWater[d].GetComponent().Animate(); } for (int e = 0; e < InGroundTraps.Count; e++) { InGroundTraps[e].GetComponent().Animate(); } for (int f = 0; f < ShootingCannons.Count; f++) { ShootingCannons[f].GetComponent().Animate(); } } }