Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (!ChessManager.isPlayer)
     {
         ChessManager.artificialPlayerPlayerFirst(0);
         x = ChessManager.x;
         y = ChessManager.y;
         ChessDown(Cc);
         ChessManager.isPlayer = true;
     }
     if (ChessManager.IfWin() != 0)
     {
         int judgement = ChessManager.IfWin();
         if (judgement == PLAYER)
         {
             PlayerWin();
         }
         else if (judgement == COMPUTER)
         {
             ComputerWin();
         }
         else if (judgement == appearingDraw)
         {
             DrawAppear();
         }
     }
 }