private void OnTryAddCat(ICatData catData)
 {
     if (!catsOnCell.isFull)
     {
         OnAddCat(catData);
     }
 }
Exemple #2
0
 public void AddCat(ICatData cat)
 {
     if (onTryAddCat != null)
     {
         onTryAddCat.Invoke(cat);
     }
 }
        private void OnAddCat(ICatData catData)
        {
            ICat cat = catsFabric.Create(catData, mouse.speed, cellData.difficult.coefficient);

            catsOnCell.AddCat(cat);
            catData.SetFree(false);
            cellWindow.SetCatsInfo(catsOnCell.GetCats());
        }
 private void OnDeleteCat(ICatData catData)
 {
     catsOnCell.RemoveCat(catData);
     catData.SetFree(true);
 }