Beispiel #1
0
        //CPのターン。
        //画面隠す。CPの移動、ターン切り替え、リスト更新、画面を戻す。
        private void CPTurn()
        {
            //StartCoroutine(DelayMethod());
            CPB.SetInfo(GameManager.ManagerStore.cp, ManagerStore.fieldManager);
            var CPMove = CPB.BestMove();

            ExcuteMotion(GameManager.ManagerStore.cp.GetPieceById(CPMove.GetMovePieceId()), CPMove.GetMoveFaceId(), CPMove.GetRotateDirection());
            //Debug.Log("PieceId:" + CPMove.GetMovePieceId() + " FaceId:" + CPMove.GetMoveFaceId() + " Direction:" + CPMove.GetRotateDirection());
        }
Beispiel #2
0
        //CPのターン。
        //画面隠す。CPの移動、ターン切り替え、リスト更新、画面を戻す。
        private void CPTurn()
        {
            WhileMoveing(true);
            StartCoroutine(DelayMethod(1.5f, () => { WhileMoveing(false); }));

            CPB.SetInfo(GameManager.ManagerStore.cp, ManagerStore.fieldManager);
            var CPMove = CPB.BestMove();

            //くるくる回転するだけ。
            Debug.Log("CPPiece : " + CPMove.GetMovePieceId() + "CPMove : " + CPMove.GetMoveFaceId() + "CPMove : " + CPMove.GetRotateDirection());
            ExcuteMotion(GameManager.ManagerStore.cp.GetPieceById(CPMove.GetMovePieceId()), CPMove.GetMoveFaceId(), CPMove.GetRotateDirection());
            //ExcuteMotion(GameManager.ManagerStore.cp.GetPieceById(CPMove.GetMovePieceId()), CPMove.GetMoveFaceId(), CPMove.GetRotateDirection());
            //Debug.Log("PieceId:" + CPMove.GetMovePieceId() + " FaceId:" + CPMove.GetMoveFaceId() + " Direction:" + CPMove.GetRotateDirection());
        }