// Start is called before the first frame update void Start() { triggers = SpawnEmitter.Emit(); SpawnEmitter.isEnabled = false; random = GetComponent <HumanRandom>(); random.SetRange(0, triggers.Count); sequence = new List <int>(); int count = 0; foreach (GameObject g in triggers) { if (g.TryGetComponent(out ITrigger trigger)) { trigger.SetId(count, this); count++; } } audioSource = GetComponent <AudioSource>(); SetSequence(); SetCurrent(); }
// Start is called before the first frame update void Start() { random = GetComponent <HumanRandom>(); random.SetRange(0, pieces.Count); zones = new List <bool> { true, true, true, true, true, true }; zonePositions = new List <Vector3> { Vector3.forward, Vector3.back, Vector3.left, Vector3.right, Vector3.up, Vector3.down }; }