Esempio n. 1
0
 private void Start()
 {
     cp = gameObject.GetComponent <ChipSpawner>();
     //start Matrix initialization
     mainMatrix[3, 3] = 1;
     mainMatrix[4, 4] = 1;
     mainMatrix[3, 4] = -1;
     mainMatrix[4, 3] = -1;
     cp.SpawnChip(Alpha.D, 4, Color.White);
     cp.SpawnChip(Alpha.E, 5, Color.White);
     cp.SpawnChip(Alpha.D, 5, Color.Black);
     cp.SpawnChip(Alpha.E, 4, Color.Black);
 }
 private void Awake()
 {
     _chipSpawner = GetComponent <ChipSpawner>();
     _tileMap     = GetComponent <TileMap>();
 }