Example #1
0
 public void ChangeWeather(CardType cardType)
 {
     if (cardType == CardType.Snow)
     {
         swordP_1.SetWeatherEffect(true);
         swordP_2.SetWeatherEffect(true);
     }
     else if (cardType == CardType.Fog)
     {
         shieldP_1.SetWeatherEffect(true);
         shieldP_2.SetWeatherEffect(true);
     }
     else if (cardType == CardType.Rain)
     {
         castleP_1.SetWeatherEffect(true);
         castleP_2.SetWeatherEffect(true);
     }
     else if (cardType == CardType.Sunny)
     {
         RemoveAllWeatherEffects();
         weather.RemoveCards();
     }
 }