Exemple #1
0
 public void AddBlackFigure(CheckerBase checker)
 {
     if (CheckersBlack == null)
     {
         CheckersBlack = new List <CheckerBase>();
     }
     CheckersBlack.Add(checker);
 }
Exemple #2
0
 public void AddWhiteFigure(CheckerBase checker)
 {
     if (CheckersWhite == null)
     {
         CheckersWhite = new List <CheckerBase>();
     }
     CheckersWhite.Add(checker);
 }
Exemple #3
0
        public void RemoveChecker(CheckerBase checker)
        {
            if (checker.CheckerColor == CheckerColor.WHITE)
            {
                CheckersWhite.Remove(checker);
            }
            else if (checker.CheckerColor == CheckerColor.BLACK)
            {
                CheckersBlack.Remove(checker);
            }

            checker.gameObject.SetActive(false);

            CheckEmpty();
        }