Exemplo n.º 1
0
 public void WaterPotatoes(int player)
 {
     if (player == 1)
     {
         rain.RainRightOn();
         foreach (Transform crop in p1crops.transform)
         {
             crop.gameObject.GetComponent <FieldPotato>().levelUp();
         }
     }
     else if (player == 2)
     {
         rain.RainLeftOn();
         foreach (Transform crop in p2crops.transform)
         {
             crop.gameObject.GetComponent <FieldPotato>().levelUp();
         }
     }
 }