1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
public bool Laufen()
{
// Random generieren
Random aZufallsgenerator = new Random();
aDistanz = aZufallsgenerator.Next(1,5);
Point aPostiton = aHundebild.Location;
aHundebild.Location.X += aDistanz;
aHundebild.Location = aPostiton;
}
|