public GridManager(GameObject[][] soulsGrid, SoulCreator soulCreator) { this.soulsGrid = soulsGrid; this.soulCreator = soulCreator; width = soulsGrid.Length; height = soulsGrid[0].Length; this.reflectedArray = new ReflectedArray(instantiateArray(), soulCreator.spriteArray.Length); reflectedArray.CreateFirstSoulsGrid(); }
void Start() { soulCreator = FindObjectOfType <SoulCreator>(); audioSource = GetComponent <AudioSource>(); movesAndScores = FindObjectOfType <MovesAndScores>(); soulListToDestroy = new List <GameObject>(); InstantiateAllGrids(); CenterTheGrid(); gridManager = new GridManager(soulsGrid, soulCreator); gridManager.GetStartGrid(); ChangeStatus(DROP_SOULS); }