Beispiel #1
0
 public void Start() // початок гри
 {
     work = new Work();
     work.AddFish();
     work.AddFish();
     gun = new Gun();
 }
Beispiel #2
0
        public void Addmorefish()
        {
            int count = 0;

            foreach (List <Fish> f in work.GetAll())
            {
                if (f.Count < 2)
                {
                    count++;
                }
            }
            if (count > 5)
            {
                work.AddFish();
                work.AddFish();
            }
        }