Exemplo n.º 1
0
 void OnDropDown()
 {
     score.GetComponent <ScoreBehaviour>().AddToTetromiones(1);
     // Clear filled horizontal lines
     GridBehavior.DeleteFullRows();
     // Spawn next Group
     foreach (Transform child in transform)
     {
         child.transform.gameObject.layer = LayerMask.NameToLayer("LockedBlock");
     }
     Destroy(GameObject.FindGameObjectWithTag("CurrentShadow"));
     FindObjectOfType <Spawner>().SpawnNext();
     FindObjectOfType <Spawner>().lockHold = false;
 }