Esempio n. 1
0
        public void Start()
        {
            //必要なオブジェクトのfind
            checkText     = GameObject.Find("CheckText").GetComponent <Text>();
            movingPanel   = GameObject.Find("WhileMovingPanel").GetComponent <Image>();
            movingText    = GameObject.Find("WhileMoving").GetComponent <Text>();
            restPieceText = GameObject.Find("RestPiece").GetComponent <Text>();

            checkMenue = GameObject.Find("CheckMenue");
            viewCamera = GameObject.Find("ViewCamera");
            checkMenue.SetActive(false);
            viewCamera.SetActive(false);

            movingText.text = "Enemy Turn…";

            CPB = new CP.CPBrain();
            PCM = GetComponent <PlayCameraManager>();
            TM  = GetComponent <TurnManager>();
            LM  = GetComponent <ListManager.ListCtrl>();
            GJ  = GetComponent <GameJudgment>();

            //test2 10 pawns written by KatoMori
            CPB.SetCPPieces();

            //キングのIDを取得
            var hpkingList = ManagerStore.humanPlayer.GetMyPiecesByKind(PieceKind.King);

            humanPlayerKing = hpkingList[0].GetPieceId();


            //初期位置の保存
            GameManager.ResultData.positionRecord.Add(Position.PositionData.SaveByPlayer(ManagerStore.humanPlayer, ManagerStore.cp));

            //ターン開始時の初期化
            selectedPieceId = humanPlayerKing;
            PCM.ChangeCamera(selectedPieceId);
            selectPiece = GameManager.ManagerStore.humanPlayer.GetPieceById(humanPlayerKing);
            TurnStartInit();
        }
Esempio n. 2
0
        public void Start()
        {
            //必要なオブジェクトのfind
            checkText  = GameObject.Find("CheckText").GetComponent <Text>();
            movingText = GameObject.Find("WhileMoving").GetComponent <Text>();
            checkMenue = GameObject.Find("CheckMenue");
            viewCamera = GameObject.Find("ViewCamera");
            checkMenue.SetActive(false);
            viewCamera.SetActive(false);

            movingText.text = "Opponent Turn...";

            CPB = new CP.CPBrain();
            HUM = new CP.CPBrain();

            PCM = GetComponent <PlayCameraManager>();
            TM  = GetComponent <TurnManager>();
            LM  = GetComponent <ListManager.ListCtrl>();
            GJ  = GetComponent <GameJudgment>();

            //test2 10 pawns written by KatoMori
            HUM.SetAgentCPPieces(61);
            CPB.SetAgentCPPieces(50);

            /*
             * //キングのIDを取得
             * var hpkingList = ManagerStore.humanPlayer.GetMyPiecesByKind(PieceKind.King);
             * humanPlayerKing = hpkingList[0].GetPieceId();
             *
             * //ターン開始時の初期化
             * selectedPieceId = humanPlayerKing;
             * PCM.ChangeCamera(selectedPieceId);
             * selectPiece = GameManager.ManagerStore.humanPlayer.GetPieceById(humanPlayerKing);
             */
            TurnStartInit();
        }