Beispiel #1
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(Screen.width * 0.2f, Screen.height * 0.3f, 60f, 30f), "Mark all"))
     {
         List <GameObject> spawnedCells = cardController.spawnedCells;
         foreach (GameObject cell in spawnedCells)
         {
             CardCellController cellController = cell.GetComponent <CardCellController>();
             cellController.OnMouseDown();
         }
     }
 }