public void PrepareFailList() { m_lFailedSequenceCount = new List <int>(); m_SpawnPattern = GetComponent <SpawnPattern>(); for (int i = 0; i < m_SpawnPattern.GetSpawnSeqencesNum(); ++i) { m_lFailedSequenceCount.Add(0); } }