Changeset 1828
- Timestamp:
- 2011-06-09 16:50:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/iltakuop/Blocks/Blocks/Blocks/Peli.cs
r1824 r1828 510 510 PudotaPower(kohde, 5); 511 511 } 512 else if ((Power > 19) && (Power < 25)) 513 { 514 PudotaPower(kohde, 6); 515 } 516 else if ((Power > 24) && (Power < 30)) 517 { 518 PudotaPower(kohde, 7); 519 } 512 520 } 513 521 … … 810 818 kohde.Destroy(); 811 819 } 812 //else if (kohde.Tag.ToString() == "Power1")813 //{814 815 //if (pieniMaila == 1)816 //{817 //PalautaMaila();818 //}819 //else if (isoMaila == 0)820 //{821 //maila.Width += 20;822 //isoMaila = 1;823 //Timer.SingleShot(20, PalautaMaila);824 //}825 826 //kohde.Destroy();827 //}828 //else if (kohde.Tag.ToString() == "Power2")829 //{830 //if (isoMaila == 1)831 //{832 //PalautaMaila();833 //}834 //else if (pieniMaila == 0)835 //{836 //kohde.Destroy();837 //pieniMaila = 1;838 //maila.Width -= 20;839 //Timer.SingleShot(20, PalautaMaila);840 //}841 842 843 //}820 else if (kohde.Tag.ToString() == "Power6") 821 { 822 823 if (pieniMaila == 1) 824 { 825 PalautaMaila(); 826 } 827 else if (isoMaila == 0) 828 { 829 maila.Width += 20; 830 isoMaila = 1; 831 Timer.SingleShot(20, PalautaMaila); 832 } 833 834 kohde.Destroy(); 835 } 836 else if (kohde.Tag.ToString() == "Power7") 837 { 838 if (isoMaila == 1) 839 { 840 PalautaMaila(); 841 } 842 else if (pieniMaila == 0) 843 { 844 kohde.Destroy(); 845 pieniMaila = 1; 846 maila.Width -= 20; 847 Timer.SingleShot(20, PalautaMaila); 848 } 849 850 851 } 844 852 845 853 for (int i = 1; i < 6; i++) … … 852 860 853 861 } 854 862 855 863 pisteetL.Value = pisteet; 856 864 pisteetL.Value = pisteet; … … 913 921 } 914 922 915 916 923 }
Note: See TracChangeset
for help on using the changeset viewer.