예제 #1
0
 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();
 }
예제 #2
0
 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);
 }